summaryrefslogtreecommitdiff
path: root/community/geoclue/APKBUILD
blob: e58e72217677b8fe7f09047d28414300873f3485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=geoclue
pkgver=2.6.0
pkgrel=0
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
	intltool
	json-glib-dev
	libnotify-dev
	libsoup-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
	"

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() {
	abuild-meson \
		-Ddbus-srv-user=geoclue \
		-Ddbus-sys-dir=/usr/share/dbus-1/system.d \
		-Dgtk-doc=false \
		-Dintrospection=true \
		$_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="
13205ab88cbd9748c155081318ae1909fddedce4250e3ece39a9f379b8cfea91dfe571961e278406ba54f8efd3a1070967479feb8256f50170112b28246b3103  geoclue-2.6.0.tar.bz2
"