1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 gvfs-{smb,afc,gphoto2,goa,mtp,nfs,google}
11 pkgdesc="Virtual filesystem implementation for GIO"
12 url="https://wiki.gnome.org/Projects/gvfs"
20 gsettings-desktop-schemas
48 _commit=e1d4d719af002a603abb440c5ab3b0d281757d74 # tags/1.50.4^0
50 "git+https://gitlab.gnome.org/GNOME/gvfs.git#commit=$_commit"
54 '08a830600964d2c896d7f107d9558053a32eb6b9166433d6e29b58d4c38e318cbb7fdf7b8230cf72d433df65f4698b9ad86624bf7d3c30c883db325d51335189')
58 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
66 arch-meson gvfs build -D man=true
67 meson compile -C build
71 meson test -C build --print-errorlogs
75 local p="$1" f d; shift
77 d="$srcdir/$p/${f#$pkgdir/}"
78 mkdir -p "$(dirname "$d")"
80 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
85 replaces=(gvfs-{obexftp,afp})
87 'gtk3: Recent files support'
88 'gvfs-afc: AFC (mobile devices) support'
89 'gvfs-goa: gnome-online-accounts (e.g. OwnCloud) support'
90 'gvfs-google: Google Drive support'
91 'gvfs-gphoto2: gphoto2 (PTP camera/MTP media player) support'
92 'gvfs-mtp: MTP device support'
93 'gvfs-nfs: NFS support'
94 'gvfs-smb: SMB/CIFS (Windows client) support'
97 meson install -C build --destdir "$pkgdir"
102 usr/lib/gvfsd-smb{,-browse} \
103 usr/share/GConf/gsettings/gvfs-smb.convert \
104 usr/share/glib-2.0/schemas/org.gnome.system.smb.gschema.xml \
105 usr/share/gvfs/mounts/smb{,-browse}.mount
108 usr/lib/gvfs{-afc-volume-monitor,d-afc} \
109 usr/lib/systemd/user/gvfs-afc-volume-monitor.service \
110 usr/share/dbus-1/services/org.gtk.vfs.AfcVolumeMonitor.service \
111 usr/share/gvfs/mounts/afc.mount \
112 usr/share/gvfs/remote-volume-monitors/afc.monitor
115 usr/lib/gvfs{-gphoto2-volume-monitor,d-gphoto2} \
116 usr/lib/systemd/user/gvfs-gphoto2-volume-monitor.service \
117 usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service \
118 usr/share/gvfs/mounts/gphoto2.mount \
119 usr/share/gvfs/remote-volume-monitors/gphoto2.monitor
122 usr/lib/gvfs{-mtp-volume-monitor,d-mtp} \
123 usr/lib/systemd/user/gvfs-mtp-volume-monitor.service \
124 usr/share/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service \
125 usr/share/gvfs/mounts/mtp.mount \
126 usr/share/gvfs/remote-volume-monitors/mtp.monitor
129 usr/lib/gvfs-goa-volume-monitor \
130 usr/lib/systemd/user/gvfs-goa-volume-monitor.service \
131 usr/share/dbus-1/services/org.gtk.vfs.GoaVolumeMonitor.service \
132 usr/share/gvfs/remote-volume-monitors/goa.monitor
136 usr/share/gvfs/mounts/nfs.mount
139 usr/lib/gvfsd-google \
140 usr/share/gvfs/mounts/google.mount
142 install -d -o root -g 102 -m 750 usr/share/polkit-1/rules.d
145 install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
149 pkgdesc+=" (SMB/CIFS backend; Windows client)"
159 pkgdesc+=" (AFC backend; Apple mobile devices)"
169 package_gvfs-gphoto2() {
170 pkgdesc+=" (gphoto2 backend; PTP camera, MTP media player)"
176 mv gphoto2/* "$pkgdir"
180 pkgdesc+=" (MTP backend; Android, media player)"
190 pkgdesc+=" (Gnome Online Accounts backend; cloud storage)"
200 pkgdesc+=" (NFS backend)"
205 install=gvfs-nfs.install
210 package_gvfs-google() {
211 pkgdesc+=" (Google Drive backend)"
217 mv google/* "$pkgdir"
220 # vim:set sw=2 sts=-1 et: