#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=gvfs
pkgver=1.6.7
pkgrel=1gv
source=("http://ftp.gnome.org/pub/GNOME/sources/gvfs/1.6/gvfs-1.6.7.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=ftp://ftp.gnome.org/pub/gnome/sources/gvfs
options=('noautodotnew')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gvfs (a userspace virtual filesystem)"
"gvfs is a userspace virtual filesystem where mount runs as a separate"
"processes which you talk to via dbus. It also contains a gio module"
"that seamlessly adds gvfs support to all applications using the gio"
"API. It also supports exposing the gvfs mounts to non-gio applications"
"using fuse."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	# bash-completion script is placed in the wrong place
	mkdir $startdir/pkg/etc/bash_completion.d
	mv $startdir/pkg/etc/profile.d/gvfs-bash-completion.sh $startdir/pkg/etc/bash_completion.d/
	rmdir $startdir/pkg/etc/profile.d
}