udisks2: set --with-systemdsystemunitdir only if the systemd build option is enabled.

This commit is contained in:
Juan RP 2014-08-21 09:26:20 +02:00
parent f3fed33a6b
commit 3d3c8b10f1

View file

@ -1,11 +1,10 @@
# Template file for 'udisks2'
pkgname=udisks2
version=2.1.3
revision=3
revision=4
wrksrc="udisks-${version}"
build_style=gnu-configure
configure_args="--disable-static --with-udevdir=/usr/lib/udev
--with-systemdsystemunitdir=/usr/lib/systemd/system"
configure_args="--disable-static --with-udevdir=/usr/lib/udev"
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel"
@ -32,7 +31,7 @@ else
fi
if [ "$build_option_systemd" ]; then
configure_args+=" --enable-systemd"
configure_args+=" --enable-systemd --with-systemdsystemunitdir=/usr/lib/systemd/system"
makedepends+=" systemd-devel"
else
configure_args+=" --disable-systemd"