diff options
author | psykose <alice@ayaya.dev> | 2023-03-17 20:01:08 +0000 |
---|---|---|
committer | psykose <alice@ayaya.dev> | 2023-03-17 21:01:15 +0100 |
commit | 941d60b767c884d157ea440b8c304fcbf43b16ac (patch) | |
tree | 8cf7e3455197fab2f9bd05dfe31c854c969cd9a2 | |
parent | 7338f3f35aa99c728a636252709fcf061103625f (diff) |
community/geos: modernise
-rw-r--r-- | community/geos/APKBUILD | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/community/geos/APKBUILD b/community/geos/APKBUILD index d90588d9fa0..998c2b97957 100644 --- a/community/geos/APKBUILD +++ b/community/geos/APKBUILD @@ -7,41 +7,26 @@ 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" +makedepends="cmake samurai" subpackages="$pkgname-dev" source="https://download.osgeo.org/geos/geos-$pkgver.tar.bz2" build() { - case "$CARCH" in - aarch64*|ppc64le) CXXFLAGS="$CXXFLAGS -ffp-contract=off" ;; - esac - - # fix build on armhf and armv7 with info from - # https://trac.osgeo.org/geos/ticket/993 - local inline="--enable-inline" - case "$CARCH" in - armhf|armv7) inline="--disable-inline" ;; - esac - - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - $inline - make + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON + cmake --build build } check() { - make check + ctest --test-dir build --output-on-failure -j${JOBS:-2} } package() { - make DESTDIR="$pkgdir" install - find $pkgdir -name "*.a" -type f -delete + DESTDIR="$pkgdir" cmake --install build } + sha512sums=" b5df5b773bef595335e1be6c6d3325f932f1577e2a4b8bdfa8cf26f09c7d41ed5e0695ca15826d1f95bc4a45b777839c2be8a96a8af5415c8bcf58cc804eb1ec geos-3.11.2.tar.bz2 " |