accountsservice: add optional elogind support, default on

This commit is contained in:
Enno Boland 2019-08-03 15:57:42 +02:00 committed by Enno Boland
parent 70db41aa82
commit 399d34d9ae

View file

@ -1,12 +1,13 @@
# Template file for 'accountsservice'
pkgname=accountsservice
version=0.6.54
revision=3
revision=4
build_style=meson
build_helper="gir"
configure_args="-Dsystemdsystemunitdir=no $(vopt_bool gir introspection)"
hostmakedepends="glib-devel pkg-config"
makedepends="polkit-devel"
configure_args="-Dsystemdsystemunitdir=no
$(vopt_bool gir introspection) $(vopt_bool elogind elogind)"
hostmakedepends="glib-devel pkg-config polkit"
makedepends="polkit-devel $(vopt_if elogind elogind-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"
@ -18,14 +19,8 @@ make_dirs="
/var/lib/AccountsService/icons 755 root root"
# Package build options
build_options="gir"
build_options_default="gir"
# Disable gir for cross builds.
if [ "$CROSS_BUILD" ]; then
# for ITS rules
hostmakedepends+=" polkit"
fi
build_options="elogind gir"
build_options_default="elogind gir"
accountsservice-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"