desktop/sfcgal/PKGBUILD
Neofytos Kolokotronis 536c305e9b sfcgal: 1.2.1
2015-12-06 19:36:17 +01:00

30 lines
905 B
Bash

# Arch contribution: https://aur4.archlinux.org/packages/sfcgal/
pkgname=sfcgal
pkgver=1.2.1
pkgrel=1
pkgdesc="Wrapper around the CGAL library that intents to implement 2D and 3D operations on OGC standards models"
arch=('x86_64')
url="http://oslandia.github.io/SFCGAL/index.html"
license=('GPL')
depends=('cgal' 'boost' 'gmp' 'mpfr' 'openscenegraph' 'qt' 'postgresql')
makedepends=('cmake')
source=("https://github.com/Oslandia/SFCGAL/archive/v$pkgver.tar.gz")
sha256sums=('928875941be8e9072698f35c1b9a119fed7cad11f71ef0785d49e0d03b765119')
build() {
cd $srcdir/SFCGAL-$pkgver
cmake -Wno-dev \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DSFCGAL_BUILD_VIEWER=1 \
-DSFCGAL_BUILD_EXAMPLES=1 \
-DSFCGAL_BUILD_TEST=1 .
make
}
package() {
cd $srcdir/SFCGAL-$pkgver
make DESTDIR=$pkgdir install
rm -rf $pkgdir/usr/include/CGAL
}