gvfs: add systemd build option (on by default).

This commit is contained in:
Juan RP 2014-05-20 13:45:26 +02:00
parent 9f0d68ea18
commit fb6c4a0f55

View file

@ -1,7 +1,7 @@
# Template file for 'gvfs'
pkgname=gvfs
version=1.20.2
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-hal --disable-afc
--with-bash-completion-dir=/usr/share/bash-completion/completions"
@ -9,8 +9,8 @@ hostmakedepends="pkg-config intltool libxslt docbook-xsl"
makedepends="
libbluetooth-devel dbus-glib-devel libgudev-devel>=183 libexif-devel libbluray-devel
fuse-devel libarchive-devel>=3.1.2 libcdio-devel libsoup-gnome-devel>=2.44
libgphoto2-devel libsecret-devel gtk+3-devel samba-devel systemd-devel
avahi-glib-libs-devel udisks2-devel libgcrypt-devel libmtp-devel
libgphoto2-devel libsecret-devel gtk+3-devel samba-devel libmtp-devel
avahi-glib-libs-devel udisks2-devel libgcrypt-devel
libobexftp-devel gnome-online-accounts-devel>=3.12"
short_desc="Userspace virtual filesystem"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -19,6 +19,18 @@ license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=84d9412e7bedfba902696ae7fb0cfceb0b66b98823f8388745b20693e3b24f8e
# Package build options
build_options="systemd"
build_options_default="systemd"
desc_option_systemd="Enable support for systemd"
if [ "$build_option_systemd" ]; then
configure_args+=" --enable-systemd"
makedepends+=" systemd-devel"
else
configure_args+=" --disable-systemd"
fi
post_install() {
ln -sfr ${DESTDIR}/usr/bin/gvfs-open ${DESTDIR}/usr/bin/gnome-open
}