mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 18:45:05 +02:00
35 lines
1,010 B
Text
35 lines
1,010 B
Text
# Contributor: Alex Yam <alex@alexyam.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=libspatialindex
|
|
pkgver=2.1.0
|
|
pkgrel=0
|
|
pkgdesc="Extensible framework for robust spatial indexing methods"
|
|
url="https://libspatialindex.org/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="cmake samurai"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/libspatialindex/libspatialindex/releases/download/$pkgver/spatialindex-src-$pkgver.tar.gz"
|
|
builddir="$srcdir/spatialindex-src-$pkgver"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_PREFIX_PATH=/usr \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)"
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
4b3fd983419b89aca2aa51b76423e7cdb818e894bb03d3acfd267cffe79da046959aec74c14330ea89b9292551ebafec84e3b3428fab21dad69b376433f72a17 spatialindex-src-2.1.0.tar.gz
|
|
"
|