From b19c817104a19407ea9a04cb1d4ecfe94a11800e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 28 Jul 2014 09:05:38 +0200 Subject: [PATCH] xfce4-session: add systemd build option (on). --- srcpkgs/xfce4-session/template | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/srcpkgs/xfce4-session/template b/srcpkgs/xfce4-session/template index 6ab53bf1600..49ead16a307 100644 --- a/srcpkgs/xfce4-session/template +++ b/srcpkgs/xfce4-session/template @@ -1,9 +1,9 @@ # Template file for 'xfce4-session' pkgname=xfce4-session version=4.10.1 -revision=4 +revision=5 build_style=gnu-configure -configure_args="--disable-static --enable-systemd" +configure_args="--disable-static" hostmakedepends="pkg-config intltool xfce4-dev-tools gettext-devel" makedepends="libxfce4ui-devel gtk+-devel xfconf-devel dbus-glib-devel libwnck2-devel xfce4-panel-devel libSM-devel systemd-devel polkit-devel @@ -17,8 +17,19 @@ homepage="http://xfce.org" distfiles="http://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2" checksum=0154fabdc398798c3445374ccc52a2f5bcb2d867fc94bc54114395b24f9cfc83 +# Package build options +build_options="systemd" +build_options_default="systemd" + +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-systemd" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-systemd" +fi + pre_configure() { - xdt-autogen + NOCONFIGURE=1 xdt-autogen } xfce4-session-devel_package() {