From 8891370ec4e7f060953b6e5e8b3d2050fb0a4920 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 20 May 2014 13:01:10 +0200 Subject: [PATCH] accountsservice: add systemd build option (on by default). --- srcpkgs/accountsservice/template | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/srcpkgs/accountsservice/template b/srcpkgs/accountsservice/template index bd8aa4e6a8..c80417ad4e 100644 --- a/srcpkgs/accountsservice/template +++ b/srcpkgs/accountsservice/template @@ -1,13 +1,13 @@ # Template file for 'accountsservice' pkgname=accountsservice version=0.6.37 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static ac_cv_file__etc_redhat_release=no ac_cv_file__etc_debian_version=no --with-systemdsystemunitdir=/usr/lib/systemd/system" hostmakedepends="pkg-config intltool glib-devel" -makedepends="polkit-devel systemd-devel" +makedepends="polkit-devel" make_dirs=" /var/lib/AccountsService/users 755 root root /var/lib/AccountsService/icons 755 root root" @@ -19,12 +19,14 @@ distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.xz checksum=b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1 # Package build options -build_options="gir" +build_options="gir systemd" desc_option_gir="Enable support for building gobject introspection data" +desc_option_systemd="Enable support for systemd" +build_options_default="systemd" # Disable gir for cross builds. if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" + build_options_default+=" gir" fi if [ "$build_option_gir" ]; then @@ -34,6 +36,13 @@ else configure_args+=" --disable-introspection" fi +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-systemd" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-systemd" +fi + accountsservice-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"