# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=gvfs pkgver=1.22.1 pkgrel=0 pkgdesc="Backends for the gio framework in GLib" url="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/" arch="all" license="GPL" depends= triggers="$pkgname.trigger=/usr/lib/gvfs" makedepends="intltool fuse-dev udev-dev bluez-dev expat-dev samba-dev libsoup-dev avahi-dev libarchive-dev udisks2-dev libgphoto2-dev libcdio-paranoia-dev libgcrypt-dev libxslt-dev docbook-xsl" install= subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-afp $pkgname-archive $pkgname-avahi $pkgname-cdda $pkgname-dav $pkgname-fuse $pkgname-gphoto2 $pkgname-obexftp $pkgname-smb " source="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/gvfs-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) patch -p1 -i "$srcdir"/$i || return 1 esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/gvfs \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-gdu \ --enable-http \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.la \ "$pkgdir"/usr/lib/gvfs/*.la \ "$pkgdir"/usr/lib/gio/modules/*.la } _mv_files() { local i for i in "$@"; do mkdir -p "$subpkgdir"/${i%/*} mv "$pkgdir"/$i "$subpkgdir"/$i || return 1 done } fuse() { pkgdesc="FUSE support for gvfs" cd "$pkgdir" _mv_files usr/lib/gvfs/gvfsd-fuse } smb() { pkgdesc="Windows fileshare support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfsd-smb* \ usr/share/gvfs/mounts/smb* \ usr/share/glib-*/schemas/org.gnome.system.smb.gschema.xml \ usr/share/GConf/gsettings/gvfs-smb.convert } archive() { pkgdesc="Archiving support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfsd-archive* \ usr/share/gvfs/mounts/archive* } obexftp() { pkgdesc="ObexFTP support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfsd-obex* \ usr/share/gvfs/mounts/obex* } gphoto2() { pkgdesc="gphoto2 support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfs*gphoto* \ usr/share/gvfs/*/gphoto* \ usr/share/dbus*/services/*GPhoto* } afp() { pkgdesc="AFP support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfs*afp* \ usr/share/gvfs/*/afp* } avahi() { pkgdesc="DNS-SD support for gvfs" cd "$pkgdir" _mv_files \ usr/lib/gvfs/gvfs*dns* \ usr/share/gvfs/mounts/dns-sd.mount \ usr/share/glib-*/schemas/org.gnome.system.dns_sd.gschema.xml \ usr/share/GConf/gsettings/gvfs-dns-sd.convert } cdda() { pkgdesc="CDDA support for gvfs" cd "$pkgdir" _mv_files \ usr/share/gvfs/mounts/cdda.mount \ usr/lib/gvfs/gvfsd-cdda } dav() { pkgdesc="WebDAV support for gvfs" cd "$pkgdir" _mv_files \ usr/share/gvfs/mounts/dav.mount \ usr/share/gvfs/mounts/dav+sd.mount \ usr/lib/gvfs/gvfsd-dav } # #afc() { # pkgdesc="AFC support for gvfs" #} md5sums="ad3e96e322f7bbf5b765c0c6da9228cf gvfs-1.22.1.tar.xz" sha256sums="c4fa236a65dce60e72bdc6bed38ecd7dd74756745f4770e7dcfa069dc8a43572 gvfs-1.22.1.tar.xz" sha512sums="ead8a62c4f00f4824cfab363c75b2d594b3d79736523cf907f7e805549d8cce5ea0049cab29a966f2a87416420c6b120fdcd4d302efb2722f1401e55d5c55ddc gvfs-1.22.1.tar.xz"