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' # Template file for 'accountsservice'
pkgname=accountsservice pkgname=accountsservice
version=0.6.54 version=0.6.54
revision=3 revision=4
build_style=meson build_style=meson
build_helper="gir" build_helper="gir"
configure_args="-Dsystemdsystemunitdir=no $(vopt_bool gir introspection)" configure_args="-Dsystemdsystemunitdir=no
hostmakedepends="glib-devel pkg-config" $(vopt_bool gir introspection) $(vopt_bool elogind elogind)"
makedepends="polkit-devel" 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" short_desc="D-Bus interfaces for querying and manipulating user account information"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>" maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
@ -18,14 +19,8 @@ make_dirs="
/var/lib/AccountsService/icons 755 root root" /var/lib/AccountsService/icons 755 root root"
# Package build options # Package build options
build_options="gir" build_options="elogind gir"
build_options_default="gir" build_options_default="elogind gir"
# Disable gir for cross builds.
if [ "$CROSS_BUILD" ]; then
# for ITS rules
hostmakedepends+=" polkit"
fi
accountsservice-devel_package() { accountsservice-devel_package() {
depends="${sourcepkg}>=${version}_${revision}" depends="${sourcepkg}>=${version}_${revision}"