wok-6.x view xsshfs/receipt @ rev 23824
Up openssh (8.3p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 28 13:18:28 2020 +0000 (2020-05-28) |
parents | 70d8b34d7ea0 |
children | 669f61f44760 |
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 # 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 chmod +x $fs/usr/share/xsshfs/xsshfs.pl
43 cp -a $src/locale $fs/usr/share
44 ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps
45 ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps
46 sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm
47 sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm
48 }