wok-6.x annotate xsshfs/receipt @ rev 22360

libtorrent: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 21 11:46:03 2019 +0100 (2019-11-21)
parents 70d8b34d7ea0
children 669f61f44760
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@18321 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18321 18 genpkg_rules()
pascal@18321 19 {
pascal@20575 20 mkdir -p $fs/usr/share/icons/hicolor/scalable/apps $fs/usr/share/xsshfs
pascal@20575 21 mkdir -p $fs/usr/share/applications $fs/usr/bin $fs/usr/share/pixmaps
pascal@20575 22 cat > $fs/usr/bin/xsshfs <<EOT
pascal@20575 23 #!/bin/sh
pascal@20575 24
pascal@20575 25 cd /usr/share/xsshfs
pascal@20575 26 exec ./xsshfs.pl $@
pascal@20575 27 EOT
pascal@20575 28 cat > $fs/usr/share/applications/xsshfs.desktop <<EOT
pascal@20575 29 [Desktop Entry]
pascal@20575 30 Type=Application
pascal@20575 31 Encoding=UTF-8
pascal@20575 32 Name=Xsshfs
pascal@20575 33 GenericName=xsshfs
pascal@20575 34 Icon=/usr/share/pixmaps/xsshfs.svg
pascal@20575 35 Exec=xsshfs
pascal@20575 36 Terminal=false
pascal@20575 37 StartupNotify=false
pascal@20575 38 Categories=Network;
pascal@20575 39 EOT
pascal@20575 40 chmod +x $fs/usr/bin/xsshfs
pascal@20575 41 cp $src/xsshfs* $fs/usr/share/xsshfs
pascal@22360 42 chmod +x $fs/usr/share/xsshfs/xsshfs.pl
pascal@20575 43 cp -a $src/locale $fs/usr/share
pascal@20575 44 ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps
pascal@20575 45 ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps
pascal@18323 46 sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm
pascal@18323 47 sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm
pascal@18321 48 }