aboutsummaryrefslogtreecommitdiffstats
path: root/testing/plplot/APKBUILD
blob: eb7363cc55ade6325a2ed78b9d6d5b831c541dcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: River Dillon <oss@outerpassage.net>
# Maintainer: River Dillon <oss@outerpassage.net>
pkgname=plplot
pkgver=5.15.0
pkgrel=0
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://netactuate.dl.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
"