wok view xsshfs/receipt @ rev 24698

Up usbids (2022.02.23)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 17:29:51 2022 +0000 (2022-03-13)
parents 4953c6775507
children 73f1da798682
line source
1 # SliTaz package receipt.
3 PACKAGE="xsshfs"
4 VERSION="20181112"
5 TAG="1b04e4e1ec74de0d6dad156e0a83e3ea79aa0005"
6 CATEGORY="network"
7 SHORT_DESC="GUI for sshfs."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$TAG.tar.gz"
11 WEB_SITE="https://framagit.org/kepon/xsshfs"
12 WGET_URL="https://framagit.org/kepon/xsshfs/-/archive/$TAG/$TARBALL"
14 DEPENDS="sshfs perl-config-tiny perl-locale-gettext glade-perl perl-image-librsvg"
15 SUGGESTED="pcmanfm"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://framagit.org/kepon/xsshfs/-/commits/master 2>/dev/null | \
21 sed '/data-day/!d;s|.*day="||;s|".*||;s|-||g;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/icons/hicolor/scalable/apps $fs/usr/share/xsshfs
28 mkdir -p $fs/usr/share/applications $fs/usr/bin $fs/usr/share/pixmaps
29 cat > $fs/usr/bin/xsshfs <<EOT
30 #!/bin/sh
32 cd /usr/share/xsshfs
33 exec ./xsshfs.pl $@
34 EOT
35 cat > $fs/usr/share/applications/xsshfs.desktop <<EOT
36 [Desktop Entry]
37 Type=Application
38 Encoding=UTF-8
39 Name=Xsshfs
40 GenericName=xsshfs
41 Icon=/usr/share/pixmaps/xsshfs.svg
42 Exec=xsshfs
43 Terminal=false
44 StartupNotify=false
45 Categories=Network;
46 EOT
47 chmod +x $fs/usr/bin/xsshfs
48 cp $src/xsshfs* $fs/usr/share/xsshfs
49 chmod +x $fs/usr/share/xsshfs/xsshfs.pl
50 cp -a $src/locale $fs/usr/share
51 ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps
52 ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps
53 sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm
54 sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm
55 }