# Template file for 'gvfs'
pkgname=gvfs
version=1.8.2
distfiles="${GNOME_SITE}/$pkgname/1.8/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--localstatedir=/var --disable-hal --disable-afc"
short_desc="Userspace virtual filesystem"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0895ac8f6d416e1b15433b6b6b68eb119c6e8b04fdb66db665d684355ef89345
long_desc="
 gvfs is a userspace virtual filesystem designed to work with the i/o
 abstractions of gio (a library available in glib greater than 2.15). It
 installs several modules that are automatically used by applications
 using the APIs of libgio. There is also fuse support that allows
 applications not using gio to access the gvfs filesystems."

triggers="gio-modules gsettings-schemas"
subpackages="$pkgname-devel"

Add_dependency run glibc
Add_dependency run libudev
Add_dependency run expat
Add_dependency run libbluetooth
Add_dependency run glib
Add_dependency run libgudev
Add_dependency run dbus-libs
Add_dependency run dbus-glib
Add_dependency run avahi-libs
Add_dependency run avahi-glib-libs
Add_dependency run libexif
Add_dependency run libusb-compat
Add_dependency run libxml2
Add_dependency run fuse
Add_dependency run libarchive
Add_dependency run libcdio
Add_dependency run libsoup
Add_dependency run libsoup-gnome
Add_dependency run libgphoto2
Add_dependency run libgnome-keyring
Add_dependency run libsmbclient
Add_dependency run gnome-disk-utility

Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build libudev-devel
Add_dependency build expat-devel
Add_dependency build libbluetooth-devel
Add_dependency build glib-devel
Add_dependency build libgudev-devel
Add_dependency build dbus-devel
Add_dependency build dbus-glib-devel
Add_dependency build avahi-libs-devel
Add_dependency build avahi-glib-libs-devel
Add_dependency build libexif-devel
Add_dependency build libusb-compat-devel
Add_dependency build libxml2-devel
Add_dependency build fuse-devel
Add_dependency build libarchive-devel
Add_dependency build libcdio-devel
Add_dependency build libsoup-devel
Add_dependency build libsoup-gnome-devel
Add_dependency build libgphoto2-devel
Add_dependency build libgnome-keyring-devel
Add_dependency build samba-devel
Add_dependency build gnome-disk-utility-devel

Add_dependency full obex-data-server

post_install()
{
	# Move bash_completion files into correct dir.
	install -d ${DESTDIR}/etc/bash_completion.d
	mv ${DESTDIR}/etc/profile.d/* ${DESTDIR}/etc/bash_completion.d
}
