void-packages/srcpkgs/geoclue2/template
2017-05-30 05:24:55 -06:00

36 lines
1.2 KiB
Bash

# Template file for 'geoclue2'
pkgname=geoclue2
version=2.4.7
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="${FREEDESKTOP_SITE}/geoclue/releases/${version%.*}/geoclue-${version}.tar.xz"
checksum=d17b96bb5799a84723385ea5704235565e9c3dedd2b7afac475a06e550ae0ea6
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"
}
}