mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-09 07:41:58 +02:00
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
pkgname=geonames
|
|
pkgver=0.3.0
|
|
pkgrel=0
|
|
pkgdesc="A library for parsing and querying a local copy of the geonames.org database"
|
|
arch="all"
|
|
url="https://gitlab.com/ubports/development/core/geonames"
|
|
license="GPL-3.0-only"
|
|
makedepends="
|
|
bash
|
|
cmake
|
|
glib-dev
|
|
gtk-doc
|
|
samurai
|
|
"
|
|
source="https://gitlab.com/ubports/development/core/geonames/-/archive/$pkgver/geonames-$pkgver.tar.gz"
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
options="!check" # https://gitlab.com/ubports/development/core/geonames/-/issues/2
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DCMAKE_BUILD_TYPE=None
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build --output-on-failure
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
c3a397b424b3a458ec921e4d15d8ae6f3cf84b73e7e7508f3b5c6d900f2d629234dbc0be27262433b91c232b4c1fd7c930b45a523d18f05c5f62a6fb6f101d8f geonames-0.3.0.tar.gz
|
|
"
|