void-packages/srcpkgs/geoclue2/template
2018-08-16 01:56:07 -03:00

39 lines
1.2 KiB
Bash

# Template file for 'geoclue2'
pkgname=geoclue2
version=2.4.12
revision=1
wrksrc="geoclue-${version}"
build_style=gnu-configure
configure_args="--disable-static --with-dbus-service-user=geoclue2"
hostmakedepends="glib-devel intltool pkg-config
$(vopt_if gir 'gobject-introspection')"
makedepends="ModemManager-devel avahi-glib-libs-devel eudev-libudev-devel
json-glib-devel libsoup-gnome-devel libnotify-devel"
depends="libsoup"
short_desc="The Geoinformation Service (2.x series)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.freedesktop.org/wiki/Software/GeoClue"
distfiles="${FREEDESKTOP_SITE}/geoclue/releases/${version%.*}/geoclue-${version}.tar.xz"
checksum=05d0e2ec077a685de2a9c63973fe6d18366ca53881d1f0750110b93c5c68caca
system_accounts="geoclue2"
conf_files="/etc/geoclue/geoclue.conf"
lib32disabled=yes
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
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove "usr/lib/*.so"
}
}