void-packages/srcpkgs/accountsservice/template

37 lines
1.2 KiB
Bash

# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.55
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dsystemdsystemunitdir=no
$(vopt_bool gir introspection) $(vopt_bool elogind elogind)"
hostmakedepends="glib-devel pkg-config polkit gettext"
makedepends="polkit-devel $(vopt_if elogind elogind-devel)"
short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.freedesktop.org/wiki/Software/AccountsService/"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=ff2b2419a7e06bd9cb335ffe391c7409b49a0f0130b890bd54692a3986699c9b
make_dirs="
/var/lib/AccountsService/users 755 root root
/var/lib/AccountsService/icons 755 root root"
# Package build options
build_options="elogind gir"
build_options_default="elogind gir"
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
}
}