1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# $Id: PKGBUILD 196107 2013-10-07 11:52:42Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=gvfs
pkgname=('gvfs' 'gvfs-smb' 'gvfs-afc' 'gvfs-afp' 'gvfs-gphoto2' 'gvfs-goa' 'gvfs-mtp')
pkgver=1.18.2
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
license=('LGPL')
makedepends=('avahi' 'dbus-glib' 'fuse' 'intltool' 'libarchive' 'libcdio-paranoia' 'libgphoto2' 'libimobiledevice' 'libsoup' 'smbclient' 'udisks2' 'libsecret' 'docbook-xsl' 'gtk3' 'libmtp' 'gnome-online-accounts' 'libbluray')
url="http://www.gnome.org"
options=(!libtool)
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz)
sha256sums=('a24ce342a3369f7ec34f19deadc5da46bf51070d39d8733f0848d9ba4bb55da7')
build() {
cd "$pkgbase-$pkgver"
autoreconf -fi
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static \
--libexecdir=/usr/lib/gvfs \
--with-bash-completion-dir=/usr/share/bash-completion/completions \
--disable-obexftp
make
}
package_gvfs() {
pkgdesc="Userspace virtual filesystem implemented as a pluggable module for gio"
depends=('avahi' 'dconf' 'fuse' 'libarchive' 'libcdio-paranoia' 'libsoup' 'udisks2' 'libsecret' 'libbluray')
replaces=('gvfs-obexftp')
optdepends=('gvfs-afc: AFC (mobile devices) support'
'gvfs-smb: SMB/CIFS (Windows client) support'
'gvfs-gphoto2: gphoto2 (PTP camera/MTP media player) support'
'gvfs-afp: Apple Filing Protocol (AFP) support'
'gvfs-mtp: MTP device support'
'gvfs-goa: gnome-online-accounts support'
'gtk3: Recent files support')
install=gvfs.install
cd "$pkgbase-$pkgver"
sed -e 's/^am__append_4/#am__append_4/' \
-e 's/^am__append_5/#am__append_5/' \
-e 's/^am__append_6/#am__append_6/' \
-e 's/^am__append_7/#am__append_7/' \
-i monitor/Makefile
make DESTDIR="$pkgdir" install
cd "$pkgdir"
rm usr/lib/gvfs/gvfsd-{smb,smb-browse,afc,afp,afp-browse,gphoto2,mtp}
rm usr/share/gvfs/mounts/{smb,smb-browse,afc,afp,afp-browse,gphoto2,mtp}.mount
rm usr/share/glib-2.0/schemas/org.gnome.system.smb.gschema.xml
rm usr/share/GConf/gsettings/gvfs-smb.convert
}
package_gvfs-smb() {
pkgdesc="SMB/CIFS (Windows client) backend for gvfs"
depends=("gvfs=$pkgver" 'smbclient')
install=gvfs-smb.install
cd "$pkgbase-$pkgver/daemon"
install -m755 -d "$pkgdir/usr/lib/gvfs"
install -m755 -d "$pkgdir/usr/share/gvfs/mounts"
install -m755 .libs/gvfsd-smb{,-browse} "$pkgdir/usr/lib/gvfs/"
install -m644 smb{,-browse}.mount "$pkgdir/usr/share/gvfs/mounts/"
install -Dm644 org.gnome.system.smb.gschema.xml \
"$pkgdir/usr/share/glib-2.0/schemas/org.gnome.system.smb.gschema.xml"
install -Dm644 gvfs-smb.convert \
"$pkgdir/usr/share/GConf/gsettings/gvfs-smb.convert"
}
package_gvfs-afc() {
pkgdesc="AFC (mobile devices) backend for gvfs"
depends=("gvfs=$pkgver" 'libimobiledevice')
install=gvfs-module.install
cd "$pkgbase-$pkgver/daemon"
install -D .libs/gvfsd-afc "$pkgdir/usr/lib/gvfs/gvfsd-afc"
install -Dm644 afc.mount "$pkgdir/usr/share/gvfs/mounts/afc.mount"
cd "$srcdir/$pkgbase-$pkgver/monitor/afc"
make DESTDIR="$pkgdir" install
}
package_gvfs-gphoto2() {
pkgdesc="gphoto2 (PTP camera/MTP media player) backend for gvfs"
depends=("gvfs=$pkgver" 'dbus-core' 'libgphoto2' 'udev')
install=gvfs-module.install
cd "$pkgbase-$pkgver/daemon"
install -D .libs/gvfsd-gphoto2 "$pkgdir/usr/lib/gvfs/gvfsd-gphoto2"
install -Dm644 gphoto2.mount "$pkgdir/usr/share/gvfs/mounts/gphoto2.mount"
cd "$srcdir/$pkgbase-$pkgver/monitor/gphoto2"
make DESTDIR="$pkgdir" install
}
package_gvfs-afp() {
pkgdesc="Apple Filing Protocol (AFP) backend for gvfs"
depends=("gvfs=$pkgver")
install=gvfs-module.install
install -m755 -d "$pkgdir/usr/lib/gvfs"
install -m755 -d "$pkgdir/usr/share/gvfs/mounts"
cd "$pkgbase-$pkgver/daemon"
install -m755 .libs/gvfsd-afp{,-browse} "$pkgdir/usr/lib/gvfs/"
install -m644 afp{,-browse}.mount "$pkgdir/usr/share/gvfs/mounts/"
}
package_gvfs-mtp() {
pkgdesc="MTP backend for gvfs"
depends=("gvfs=$pkgver" 'libmtp')
install=gvfs-module.install
cd "$pkgbase-$pkgver/daemon"
install -D .libs/gvfsd-mtp "$pkgdir/usr/lib/gvfs/gvfsd-mtp"
install -Dm644 mtp.mount "$pkgdir/usr/share/gvfs/mounts/mtp.mount"
cd "$srcdir/$pkgbase-$pkgver/monitor/mtp"
make DESTDIR="$pkgdir" install
}
package_gvfs-goa() {
pkgdesc="Gnome Online Accounts (webservices) backend for gvfs"
depends=("gvfs=$pkgver" 'gnome-online-accounts')
install=gvfs-module.install
cd "$srcdir/$pkgbase-$pkgver/monitor/goa"
make DESTDIR="$pkgdir" install
}
|