void-packages/srcpkgs/accountsservice/template

47 lines
1.3 KiB
Bash

# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.54
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dsystemdsystemunitdir=no $(vopt_bool gir introspection)"
hostmakedepends="glib-devel pkg-config"
makedepends="polkit-devel"
short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://www.freedesktop.org/wiki/Software/AccountsService/"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=26e9062c84797e9604182d0efdb2231cb01c98c3c9b0fea601ca79a2802d21ac
make_dirs="
/var/lib/AccountsService/users 755 root root
/var/lib/AccountsService/icons 755 root root"
# Package build options
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
# Disable gir for cross builds.
if [ "$CROSS_BUILD" ]; then
# for ITS rules
hostmakedepends+=" polkit"
fi
accountsservice-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}