# Contributor: Holger Jaekel # Maintainer: Holger Jaekel pkgname=sfcgal pkgver=1.4.1 pkgrel=3 pkgdesc="Library for ISO 19107:2013 and OGC SFA 1.2 for 3D operations" url="https://oslandia.gitlab.io/SFCGAL/index.html" arch="all" license="LGPL-2.0-or-later" makedepends=" boost-dev cgal-dev cmake gmp-dev mpfr-dev samurai " subpackages="$pkgname-dev" source="https://gitlab.com/Oslandia/SFCGAL/-/archive/v$pkgver/SFCGAL-v$pkgver.tar.bz2 10-remove_cgal_unit_tests.patch " builddir="$srcdir/SFCGAL-v$pkgver" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DSFCGAL_BUILD_TESTS="$(want_check && echo ON || echo OFF)" \ -DSFCGAL_WITH_OSG=OFF \ -DCMAKE_SKIP_INSTALL_RPATH=ON cmake --build build } check() { ctest --output-on-failure --test-dir build -E "garden-test" } package() { DESTDIR="$pkgdir" cmake --install build # installs tests rm -rf "$pkgdir"/usr/bin/*test* } sha512sums=" 32397b59203b726951c657dbee4c857e561995a04d25be5456d7ded2809930b67d6748c1f0f5fffc38353f71b88ecbc0c1589fd461682791674d97cd2b1b1e09 SFCGAL-v1.4.1.tar.bz2 14a6dc90492f9a676451a3a9906f62097ab6d815ddae5721346080e769756f711e8ee439c516d87f4acbd4b3da72477a572834429f0b4b05a21fcda2dade72ac 10-remove_cgal_unit_tests.patch "