# Contributor: River Dillon # Maintainer: River Dillon pkgname=plplot pkgver=5.15.0 pkgrel=2 pkgdesc="scientific graphics plotting library" url="http://plplot.org/" license="LGPL-2.0-or-later" arch="all" makedepends="cmake gfortran pango-dev" subpackages="$pkgname-dev $pkgname-libs $pkgname-doc" source="https://downloads.sourceforge.net/project/plplot/plplot/$pkgver%20Source/plplot-$pkgver.tar.gz" options="!check" # XXX: no working check function yet build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DBUILD_SHARED_LIBS=True \ -DDEFAULT_NO_BINDINGS=True \ -DPLD_xwin=False \ $CMAKE_CROSSOPTS . cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build rm -r "$pkgdir"/usr/share/plplot$pkgver/examples } sha512sums=" 54533245569b724a7ef90392cc6e9ae65873e6cbab923df0f841c8b43def5e4307690894c7681802209bd3c8df97f54285310a706428f79b3340cce3207087c8 plplot-5.15.0.tar.gz "