# Maintainer: Marian Buschsieweke pkgname=opencsg pkgver=1.4.2 pkgrel=2 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"