# Contributor: Eric Kidd # Maintainer: Holger Jaekel pkgname=geos pkgver=3.12.0 pkgrel=0 pkgdesc="GEOS is a library providing OpenGIS and JTS spatial operations in C++." url="https://libgeos.org/" arch="all" license="LGPL-2.1-or-later" makedepends="cmake samurai" subpackages="$pkgname-dev" source="https://download.osgeo.org/geos/geos-$pkgver.tar.bz2 10-endianess.patch 20-endianess.patch " build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON cmake --build build } check() { ctest --test-dir build --output-on-failure -j${JOBS:-2} } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" cc67d9516d24ada2ceaf7c81ff9df40033bb15123160bf7e70fdff97b72c798f4b9ba8223c1eaebac0f33dcb530bc8cf42af000af3491f3227420290d89332d5 geos-3.12.0.tar.bz2 12af79d9233024a3d55c1da0f366d4982ae82a374d2b54b8ecd5e67daad0c974bbd595ed03625296da68f16f4a3b73584ab7ab765ce8d72002bb735ee6f35ca0 10-endianess.patch e402d975fda1923e89186afe3cf23b41740174031c227908f2c9857e5668b934fad6ff544e219ae4d04d4a6052c10606ecfd7615a74b682680acd4ad57e4f999 20-endianess.patch "