aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opencsg/APKBUILD
blob: 71a5a89f723cff9cacd1f2f563cff5f59db8467a (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
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=opencsg
pkgver=1.4.2
pkgrel=1
pkgdesc="A library that does image-based CSG rendering using OpenGL"
url="http://www.opencsg.org/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-dev $pkgname-example"
makedepends="glew-dev freeglut-dev"
source="http://www.opencsg.org/OpenCSG-$pkgver.tar.gz"
builddir="$srcdir/OpenCSG-$pkgver"

build() {
	make -j1
}

check() {
	make check
}

package() {
	for folder in src example; do
		sed -e 's/\/usr\/local\//\/usr\//g' -i $folder/Makefile
		make INSTALL_ROOT="$pkgdir" install -j 1 -C $folder
	done
}

example() {
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="fbe6f925982717ecca7bd0eacc4fc5b362c80c7663b1ff0d9a228f2b5e1d3625d3e6d324d9e634665c74e9c0fc37d10290ece293e59a3eba67035b6b700b7778  OpenCSG-1.4.2.tar.gz"