aboutsummaryrefslogtreecommitdiffstats
path: root/community/geoclue/APKBUILD
blob: 068beac07f07b5da24fda6a0e102e3c526fd7cc1 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=geoclue
pkgver=2.5.5
pkgrel=0
pkgdesc="dbus geolocation service"
url="https://www.freedesktop.org/wiki/Software/GeoClue/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	libsoup-dev
	json-glib-dev
	modemmanager-dev
	avahi-dev
	intltool
	gobject-introspection-dev
	libnotify-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
install="$pkgname.pre-install"
source="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/$pkgver/geoclue-$pkgver.tar.bz2"

build() {
	meson \
		--prefix=/usr \
		-Ddbus-srv-user=geoclue \
		-Ddbus-sys-dir=/usr/share/dbus-1/system.d \
		-Dgtk-doc=false \
		-Dintrospection=true \
		build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="13c34f475a9cdc0a766000e4bc6d7b41e1f437c9f3a971bf3c170347753156f00e34aea4c03fabad94acd915479ef8ec673c6e0a65579d91d3425b9595662ac6  geoclue-2.5.5.tar.bz2"