mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
42 lines
953 B
Text
42 lines
953 B
Text
# Contributor: Sascha Brawer <sascha@brawer.ch>
|
|
# Maintainer: Sascha Brawer <sascha@brawer.ch>
|
|
pkgname=libosmium
|
|
pkgver=2.21.0
|
|
pkgrel=0
|
|
pkgdesc="Fast and flexible C++ library for working with OpenStreetMap data"
|
|
url="https://github.com/osmcode/libosmium"
|
|
arch="noarch"
|
|
license="BSL-1.0"
|
|
makedepends="
|
|
boost-dev
|
|
bzip2-dev
|
|
cmake
|
|
expat-dev
|
|
gdal-dev
|
|
geos-dev
|
|
lz4-dev
|
|
protozero-dev
|
|
samurai
|
|
zlib-dev
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
source="libosmium-$pkgver.tar.gz::https://github.com/osmcode/libosmium/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-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="
|
|
fb87d5ae37c6d864ba1b265bda8e8a213fe9714d4e3cc47bd87ec05d07b9007494d37752ec4223bc5a2d957eac090d752d71f1944cb5200ae3d4af8ac97b9e10 libosmium-2.21.0.tar.gz
|
|
"
|