mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
64 lines
1.6 KiB
Plaintext
64 lines
1.6 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=geoclue
|
|
pkgver=2.7.0
|
|
pkgrel=2
|
|
pkgdesc="dbus geolocation service"
|
|
url="https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="
|
|
avahi-dev
|
|
gobject-introspection-dev
|
|
json-glib-dev
|
|
libnotify-dev
|
|
libsoup3-dev
|
|
meson
|
|
vala
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
install="$pkgname.pre-install"
|
|
source="
|
|
https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2
|
|
mozilla-location.keys
|
|
"
|
|
|
|
case "$CARCH" in
|
|
s390x|riscv64)
|
|
_arch_opts="-D3g-source=false -Dcdma-source=false -Dmodem-gps-source=false"
|
|
;;
|
|
*)
|
|
_arch_opts=""
|
|
makedepends="$makedepends modemmanager-dev"
|
|
;;
|
|
esac
|
|
|
|
build() {
|
|
# these keys are for alpine linux use only
|
|
local mozkey
|
|
mozkey="$(base64 -d "$srcdir"/mozilla-location.keys)"
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Ddbus-srv-user=geoclue \
|
|
-Ddbus-sys-dir=/usr/share/dbus-1/system.d \
|
|
-Dgtk-doc=false \
|
|
-Dintrospection=true \
|
|
-Dmozilla-api-key="$mozkey" \
|
|
$_arch_opts \
|
|
build
|
|
meson compile ${JOBS:+-j ${JOBS}} -C build
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild --print-errorlogs -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C build
|
|
}
|
|
|
|
sha512sums="
|
|
2314242f529b9011ee5da6e8cfc657568853769e4d38b8e7c604097a747dd5705d9f84dcd2763cdacb9f014e15b63fbb8356d6cb488ba91334cda87c11e4ee7d geoclue-2.7.0.tar.bz2
|
|
382510375b1a2fa79be0ab79e3391a021ae2c022429ffbaa7e7a69166f99bb56d01e59a1b10688592a29238f21c9d6977672bd77f9fae439b66bdfe0c55ddb15 mozilla-location.keys
|
|
"
|