SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xsshfs"

# SliTaz package receipt.

PACKAGE="xsshfs"
VERSION="20181112"
TAG="1b04e4e1ec74de0d6dad156e0a83e3ea79aa0005"
CATEGORY="network"
SHORT_DESC="GUI for sshfs."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$TAG.tar.gz"
WEB_SITE="https://framagit.org/kepon/xsshfs"
WGET_URL="https://framagit.org/kepon/xsshfs/-/archive/$TAG/$TARBALL"

DEPENDS="sshfs perl-config-tiny perl-locale-gettext glade-perl perl-image-librsvg"
SUGGESTED="pcmanfm"

# What is the latest version available today?
current_version()
{
    wget -O - https://framagit.org/kepon/xsshfs/-/commits/master 2>/dev/null | \
    sed '/data-day/!d;s|.*day="||;s|".*||;s|-||g;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/icons/hicolor/scalable/apps $fs/usr/share/xsshfs
    mkdir -p $fs/usr/share/applications $fs/usr/bin $fs/usr/share/pixmaps
    cat > $fs/usr/bin/xsshfs <<EOT
#!/bin/sh

cd /usr/share/xsshfs
exec ./xsshfs.pl $@
EOT
    cat > $fs/usr/share/applications/xsshfs.desktop <<EOT
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Xsshfs
GenericName=xsshfs
Icon=/usr/share/pixmaps/xsshfs.svg
Exec=xsshfs
Terminal=false
StartupNotify=false
Categories=Network;
EOT
    chmod +x $fs/usr/bin/xsshfs
    cp $src/xsshfs* $fs/usr/share/xsshfs
    chmod +x $fs/usr/share/xsshfs/xsshfs.pl
    cp -a $src/locale $fs/usr/share
    ln -s ../xsshfs/xsshfs.svg $fs/usr/share/pixmaps
    ln -s ../../../../xsshfs/xsshfs.svg $fs/usr/share/icons/hicolor/scalable/apps
    sed -i 's|"/bin/fusermount|"/usr/bin/fusermount|' $fs/usr/share/xsshfs/xsshfs.pm
    sed -i 's|xdg-open|pcmanfm|' $fs/usr/share/xsshfs/xsshfs.pm
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)