wok-current view xsshfs/receipt @ rev 25642

Bump linux to 4.19.305, add linux-pae-ipv6
author Stanislas Leduc <shann@slitaz.org>
date Wed Jan 17 12:05:22 2024 +0000 (11 months ago)
parents 4953c6775507
children
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 }