wok-6.x annotate xsshfs/receipt @ rev 21143
clamtk: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 27 15:24:38 2019 +0100 (2019-03-27) |
parents | b206aa4371e3 |
children | 4953c6775507 |
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@18321 | 11 WEB_SITE="http://forge.zici.fr/p/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@20575 | 42 cp -a $src/locale $fs/usr/share |
pascal@20575 | 43 ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps |
pascal@20575 | 44 ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps |
pascal@18323 | 45 sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm |
pascal@18323 | 46 sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm |
pascal@18321 | 47 } |