42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'geoclue2'
|
|
pkgname=geoclue2
|
|
version=2.5.2
|
|
revision=2
|
|
wrksrc="geoclue-${version}"
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Ddbus-srv-user=_geoclue2 -Dgtk-doc=false
|
|
-Dintrospection=$(vopt_if gir true false)"
|
|
conf_files="/etc/geoclue/geoclue.conf"
|
|
hostmakedepends="glib-devel intltool pkg-config"
|
|
makedepends="ModemManager-devel avahi-glib-libs-devel eudev-libudev-devel
|
|
json-glib-devel libsoup-gnome-devel libnotify-devel"
|
|
short_desc="Geoinformation Service (2.x series)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home"
|
|
distfiles="https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/${version}/geoclue-${version}.tar.bz2"
|
|
checksum=d0a2f95d8a98ea983466ba9eb2426c7ec1ce3d2063d228d3ad688f8799afddad
|
|
system_accounts="_geoclue2"
|
|
lib32disabled=yes
|
|
|
|
build_options="gir"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
geoclue2-devel_package() {
|
|
depends="$makedepends ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|