blob: bb349682729dbbc5e81c9930653a0646508073e7 (
plain)
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
132
133
134
135
136
137
138
139
140
141
142
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gvfs
pkgver=1.18.2
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-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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.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
}
#
#afc() {
# pkgdesc="AFC support for gvfs"
#}
md5sums="6479b629a0a139b47c3f8279a176182b gvfs-1.18.2.tar.xz"
sha256sums="a24ce342a3369f7ec34f19deadc5da46bf51070d39d8733f0848d9ba4bb55da7 gvfs-1.18.2.tar.xz"
sha512sums="1f501911ae637f6520930ec53e510f2691e8a5ca02332202d94def117dd3c77f26fd0bc2e1146759d362402d7b0dd46d262611c63bee54008222ec7aad222594 gvfs-1.18.2.tar.xz"
|