wok-next view gvfs/receipt @ rev 21096

Update SliTaz syslinuxes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jan 01 13:15:54 2019 +0200 (2019-01-01)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gvfs"
4 VERSION="1.36.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Userspace virtual filesystem"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Projects/gvfs"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/gnome/gvfs.html"
12 # gvfs-1.38.1 require polkit >= 0.114 while
13 # - original polkit gets fatter and fatter using mozjs
14 # - polkit-no-script is stuck on 0.113
16 TARBALL="$PACKAGE-$VERSION.tar.xz"
17 WGET_URL="$GNOME_MIRROR/gvfs/${VERSION%.*}/$TARBALL"
18 TARBALL_SHA1="fb5fe05f0661da8c88f5fa41014bcd526ad39993"
20 BUILD_DEPENDS="meson ninja shared-mime-info libxslt glib-dev gtk-doc dbus-dev \
21 gcr-dev gettext-dev polkit-dev libcap-dev libgphoto2-dev libarchive-dev \
22 libsoup-dev libcdio-paranoia-dev libmtp-dev fuse2-dev udisks2-dev gtk3-dev \
23 libbluray-dev libgudev-dev libsecret-dev libxml2-dev openssh samba-dev \
24 dbus-glib-dev libnfs-dev libgdata-dev gnome-online-accounts-dev"
25 SPLIT="\
26 $PACKAGE-admin $PACKAGE-afp $PACKAGE-archive $PACKAGE-cdda \
27 $PACKAGE-fuse $PACKAGE-goa $PACKAGE-google $PACKAGE-gphoto2 \
28 $PACKAGE-gtk $PACKAGE-http $PACKAGE-libmtp $PACKAGE-nfs \
29 $PACKAGE-smb $PACKAGE-udisks2 $PACKAGE $PACKAGE-dev"
30 COOKOPTS="skip-log-errors"
32 COPY_admin="gvfsd-admin admin.mount"
33 COPY_afp="gvfsd-afp afp.mount gvfsd-afp-browse afp-browse.mount"
34 COPY_archive="gvfsd-archive archive.mount"
35 COPY_cdda="gvfsd-cdda cdda.mount"
36 COPY_fuse="gvfsd-fuse"
37 COPY_goa="gvfs-goa-volume-monitor *.GoaVolumeMonitor.service goa.monitor"
38 COPY_google="gvfsd-google google.mount"
39 COPY_gphoto2="gvfsd-gphoto2 gphoto2.mount gvfs-gphoto2-volume-monitor *.GPhoto2VolumeMonitor.service gphoto2.monitor"
40 COPY_gtk="gvfsd-recent recent.mount"
41 COPY_http="gvfsd-dav dav.mount gvfsd-http http.mount"
42 COPY_libmtp="gvfsd-mtp mtp.mount gvfs-mtp-volume-monitor *.MTPVolumeMonitor.service mtp.monitor"
43 COPY_nfs="gvfsd-nfs nfs.mount"
44 COPY_smb="gvfsd-smb smb.mount gvfsd-smb-browse smb-browse.mount gvfs-smb.convert *.smb.gschema.xml"
45 COPY_udisks2="gvfs-udisks2-volume-monitor *.UDisks2VolumeMonitor.service udisks2.monitor"
47 CAT_admin="system-tools|admin backend"
48 CAT_afp="system-tools|Apple Filing Protocol support - afp:///"
49 CAT_archive="system-tools|archive support - archive:///"
50 CAT_cdda="system-tools|CDDA support"
51 CAT_fuse="system-tools|FUSE support"
52 CAT_goa="system-tools|GOA support"
53 CAT_google="system-tools|Google support"
54 CAT_gphoto2="system-tools|Gphoto2 support"
55 CAT_gtk="system-tools|recent files support (GTK+3) - recent:///"
56 CAT_http="system-tools|HTTP/WebDAV support"
57 CAT_libmtp="system-tools|MTP support"
58 CAT_nfs="system-tools|NFS support - nfs:///"
59 CAT_smb="system-tools|Samba support - smb:///"
60 CAT_udisks2="system-tools|Udisks2 volume monitor"
62 DEPENDS_admin="$PACKAGE glib polkit"
63 DEPENDS_afp="$PACKAGE glib libgcrypt"
64 DEPENDS_archive="$PACKAGE glib libarchive"
65 DEPENDS_cdda="$PACKAGE glib libcdio libcdio-paranoia libgudev"
66 DEPENDS_fuse="$PACKAGE fuse2 glib"
67 DEPENDS_goa="glib gnome-online-accounts $PACKAGE"
68 DEPENDS_google="$PACKAGE glib gnome-online-accounts libgdata"
69 DEPENDS_gphoto2="$PACKAGE glib libgphoto2 libgudev"
70 DEPENDS_gtk="$PACKAGE glib" # + gtk3 ?
71 DEPENDS_http="$PACKAGE glib libsoup libxml2"
72 DEPENDS_libmtp="$PACKAGE glib libgudev libmtp libusb"
73 DEPENDS_nfs="$PACKAGE glib libnfs"
74 DEPENDS_smb="$PACKAGE glib samba"
75 DEPENDS_udisks2="glib libbluray libgudev libsecret udisks2 $PACKAGE"
76 DEPENDS_std="gcr-base glib libgudev libsecret dbus eudev"
78 SUGGESTED_std="$PACKAGE-afp $PACKAGE-archive $PACKAGE-cdda $PACKAGE-fuse \
79 $PACKAGE-gphoto2 $PACKAGE-http $PACKAGE-libmtp $PACKAGE-obexftp $PACKAGE-smb \
80 $PACKAGE-udisks2"
82 # while webkit2gtk is broken on x86_64...
83 case $ARCH in
84 x86_64)
85 BUILD_DEPENDS="$(echo $BUILD_DEPENDS | sed 's|libgdata-dev||; s|gnome-online-accounts-dev||')"
86 SPLIT="$(echo $SPLIT | sed 's|gvfs-goa||; s|gvfs-google||')"
87 ;;
88 esac
90 compile_rules() {
91 sed -i.orig 's|dependendencies|dependencies|' meson.build # typo
93 # while webkit2gtk is broken on x86_64...
94 case $ARCH in
95 i?86) ARCH_ARGS='-Dgoa=true -Dgoogle=true';;
96 x86_64) ARCH_ARGS='-Dgoa=false -Dgoogle=false';;
97 esac
99 meson-wrapper \
100 build \
101 -Dsystemduserunitdir=no \
102 -Dtmpfilesdir=no \
103 \
104 -Dadmin=true \
105 -Dafc=false \
106 -Dafp=true \
107 -Darchive=true \
108 -Dcdda=true \
109 -Ddnssd=false \
110 -Dgdu=false \
111 $ARCH_ARGS \
112 -Dgphoto2=true \
113 -Dhttp=true \
114 -Dmtp=true \
115 -Dnfs=true \
116 -Dsmb=true \
117 -Dudisks2=true \
118 \
119 -Dbluray=true \
120 -Dfuse=true \
121 -Dgcr=true \
122 -Dgcrypt=true \
123 -Dgudev=true \
124 -Dkeyring=true \
125 -Dlogind=false \
126 -Dlibusb=true \
127 \
128 -Ddeprecated_programs=true \
129 -Dman=true \
130 &&
131 ninja -j1 -C build &&
132 ninja -j1 -C build install
133 }
135 post_remove_gvfs() {
136 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
137 }