wok annotate xsshfs/receipt @ rev 24927

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