wok-current view xsshfs/receipt @ rev 21836
re2c: modified WGET_URL
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 14 10:37:34 2019 +0100 (2019-09-14) |
parents | b206aa4371e3 |
children | 4953c6775507 |
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="http://forge.zici.fr/p/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 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/share/icons/hicolor/scalable/apps $fs/usr/share/xsshfs
21 mkdir -p $fs/usr/share/applications $fs/usr/bin $fs/usr/share/pixmaps
22 cat > $fs/usr/bin/xsshfs <<EOT
23 #!/bin/sh
25 cd /usr/share/xsshfs
26 exec ./xsshfs.pl $@
27 EOT
28 cat > $fs/usr/share/applications/xsshfs.desktop <<EOT
29 [Desktop Entry]
30 Type=Application
31 Encoding=UTF-8
32 Name=Xsshfs
33 GenericName=xsshfs
34 Icon=/usr/share/pixmaps/xsshfs.svg
35 Exec=xsshfs
36 Terminal=false
37 StartupNotify=false
38 Categories=Network;
39 EOT
40 chmod +x $fs/usr/bin/xsshfs
41 cp $src/xsshfs* $fs/usr/share/xsshfs
42 cp -a $src/locale $fs/usr/share
43 ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps
44 ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps
45 sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm
46 sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm
47 }