diff options
-rw-r--r-- | testing/gvfs/APKBUILD | 72 | ||||
-rw-r--r-- | testing/gvfs/gvfs.trigger | 6 |
2 files changed, 68 insertions, 10 deletions
diff --git a/testing/gvfs/APKBUILD b/testing/gvfs/APKBUILD index 8699d664f9..06a03258a3 100644 --- a/testing/gvfs/APKBUILD +++ b/testing/gvfs/APKBUILD @@ -2,16 +2,18 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=gvfs pkgver=1.6.6 -pkgrel=1 -pkgdesc="userspace virtual filesystem" -url="http://ftp.gnome.org/pub/gnome/sources/gvfs/1.6/" -arch="x86 x86_64" +pkgrel=2 +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="dbus-glib-dev intltool fuse-dev udev-dev bluez-dev expat-dev - samba-dev libsoup-dev" + samba-dev libsoup-dev avahi-dev libarchive-dev gnome-disk-utility-dev" install= -subpackages="$pkgname-dev" +subpackages="$pkgname-dev $pkgname-fuse $pkgname-smb $pkgname-archive + $pkgname-obexftp" source="http://ftp.gnome.org/pub/gnome/sources/gvfs/${pkgver%.*}/gvfs-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver @@ -23,18 +25,68 @@ build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ + --libexecdir=/usr/lib/gvfs \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + --enable-gdu \ + --disable-gconf \ + || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install +} + +_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" + triggers= + cd "$pkgdir" + _mv_files usr/lib/gvfs/gvfs-fuse-daemon +} - # remove the 2 lines below (and this) if there is no init.d script - # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +smb() { + pkgdesc="Windows fileshare support for gvfs" + triggers= + cd "$pkgdir" + _mv_files \ + usr/lib/gvfs/gvfsd-smb* \ + usr/share/gvfs/mounts/smb* } +archive() { + pkgdesc="Archiving support for gvfs" + triggers= + cd "$pkgdir" + _mv_files \ + usr/lib/gvfs/gvfsd-archive* \ + usr/share/gvfs/mounts/archive* +} + +obexftp() { + pkgdesc="ObexFTP support for gvfs" + triggers= + cd "$pkgdir" + _mv_files \ + usr/lib/gvfs/gvfsd-obex* \ + usr/share/gvfs/mounts/obex* +} + +#gphoto2() { +# pkgdesc="gphoto2 support for gvfs" +#} +# +#afc() { +# pkgdesc="AFC support for gvfs" +#} + md5sums="e1f324c45ea07d630f85bd3199865fd9 gvfs-1.6.6.tar.bz2" diff --git a/testing/gvfs/gvfs.trigger b/testing/gvfs/gvfs.trigger new file mode 100644 index 0000000000..e1d7906823 --- /dev/null +++ b/testing/gvfs/gvfs.trigger @@ -0,0 +1,6 @@ +#!/bin/sh + +# Reload .mount files +killall -USR1 gvfsd >&/dev/null +exit 0 + |