# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=geoclue
pkgver=2.4.7
pkgrel=2
pkgdesc="dbus geolocation service"
url="https://www.freedesktop.org/wiki/Software/GeoClue/"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="libsoup-dev json-glib-dev modemmanager-dev avahi-dev intltool gobject-introspection-dev"
install=""
subpackages="$pkgname-dev"
source="https://freedesktop.org/software/geoclue/releases/2.4/geoclue-$pkgver.tar.xz"
builddir="$srcdir/geoclue-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="472cf923abfd40dee296eee2e6888c47f273ad709e1bdcce534bd794cf9f7073ceabd6addf918277e10498e094af5a6e9539b5cf24171577e78bc3b0b2d17b72  geoclue-2.4.7.tar.xz"
