diff --git a/srcpkgs/gnome-disk-utility/template b/srcpkgs/gnome-disk-utility/template index 4de2832ef0a..c8f2cd3338c 100644 --- a/srcpkgs/gnome-disk-utility/template +++ b/srcpkgs/gnome-disk-utility/template @@ -1,14 +1,14 @@ # Template file for 'gnome-disk-utility' pkgname=gnome-disk-utility version=3.12.1 -revision=1 +revision=2 lib32disabled=yes build_style=gnu-configure configure_args="--disable-static" hostmakedepends="pkg-config intltool gnome-doc-utils" makedepends="liblzma-devel gtk+3-devel libcanberra-devel udisks2-devel - libdvdread-devel libsecret-devel libpwquality-devel systemd-devel - gnome-settings-daemon-devel>=3.12 libnotify-devel" + libdvdread-devel libsecret-devel libpwquality-devel libnotify-devel + gnome-settings-daemon-devel>=3.12" depends="hicolor-icon-theme desktop-file-utils" short_desc="GNOME libraries and applications for dealing with storage devices" maintainer="Juan RP " @@ -16,3 +16,15 @@ homepage="http://www.gnome.org" license="GPL-2" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=5994bfae57063d74be45736050cf166cda5b1600a599703240b641b39375718e + +# Package build options +build_options="gir systemd" +desc_option_systemd="Enable support for systemd" +build_options_default="systemd" + +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-libsystemd-login" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-libsystemd-login" +fi