aboutsummaryrefslogtreecommitdiffstats
path: root/testing/geoclue/APKBUILD
blob: 2c54bc60e396acbefe8cc014552346bff15898ff (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:
pkgname=geoclue
pkgver=2.5.3
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="b4188f1b055f84ce0c58e497896a328d09838073b867598a0ca026c741e4464ae7ee54e53e9f02addd818152dce4a21eb5f83a3245e7ce1a93eec5671d0a9ee9  geoclue-2.5.3.tar.bz2"