void-packages/srcpkgs/accountsservice/template

41 lines
1.2 KiB
Bash

# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.54
revision=1
build_style=meson
configure_args="-Dsystemdsystemunitdir=no $(vopt_bool gir introspection)"
hostmakedepends="glib-devel pkg-config $(vopt_if gir 'gobject-introspection')"
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"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
else
# 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
}
}