# Contributor: Sascha Brawer # Maintainer: Sascha Brawer pkgname=libosmium pkgver=2.19.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 -output-on-failure --test-dir build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" dca79a6771be759b8f1c2167d8b5981a3b5d4c6a4d6a0df5ae438c63de3f25120abfabd20a88385eeda28e287d63f2b27f2ac87301d475f3ab46111809c4b2e3 libosmium-2.19.0.tar.gz "