summaryrefslogtreecommitdiffstats
path: root/testing/gvfs/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-19 12:46:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-19 12:46:26 +0000
commitfb3970b6c74a54e3ccefc71fe113a7f521e376c2 (patch)
tree2d3555945d4b541c2b5fc27e09c1be36ea3a9893 /testing/gvfs/APKBUILD
parent1f1b900dbd7ee71611145c256994c62330c71d9c (diff)
downloadaports-fb3970b6c74a54e3ccefc71fe113a7f521e376c2.tar.bz2
aports-fb3970b6c74a54e3ccefc71fe113a7f521e376c2.tar.xz
testing/gvfs: enable gdu, split into subpackages
Diffstat (limited to 'testing/gvfs/APKBUILD')
-rw-r--r--testing/gvfs/APKBUILD72
1 files changed, 62 insertions, 10 deletions
diff --git a/testing/gvfs/APKBUILD b/testing/gvfs/APKBUILD
index 8699d664f..06a03258a 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"