# Template file for 'geoclue2'
pkgname=geoclue2
version=2.4.6
revision=1
lib32disabled=yes
wrksrc="geoclue-${version}"
build_style=gnu-configure
configure_args="--disable-static --with-dbus-service-user=geoclue2"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir gobject-introspection)"
makedepends="eudev-libudev-devel json-glib-devel libsoup-gnome-devel ModemManager-devel
 avahi-glib-libs-devel"
depends="libsoup>=2.44"
# Run the daemon under an unprileged user.
system_accounts="geoclue2"
conf_files="/etc/geoclue/geoclue.conf"
short_desc="The Geoinformation Service (2.x series)"
homepage="http://www.freedesktop.org/wiki/Software/GeoClue"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://www.freedesktop.org/software/geoclue/releases/${version%.*}/geoclue-${version}.tar.xz"
checksum=c57df7455c9b4b2f43b0f5d9be14d52f5ff9897236df768f6ca9044b79b6d3b6

build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
	build_options_default+=" gir"
fi

geoclue2-devel_package() {
	depends="$makedepends ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
