# SliTaz package receipt. PACKAGE="zssh" VERSION="1.5c" CATEGORY="network" SHORT_DESC="Transfer files to a remote machine while using ssh" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tgz" WEB_SITE="https://zssh.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="ssh" DEPENDS="readline lrzsz" BUILD_DEPENDS="readline-dev ncurses-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/tgz/!d;s|.*zssh-||;s|.tgz.*||;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -ltinfo" ./configure --prefix=/usr $CONFIGURE_ARGS && make install -d -m 755 $DESTDIR/usr/share/man/man1 && install -d -m 755 $DESTDIR/usr/share/doc && install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 && install -m 644 $src/[A-Z][A-Z]* $DESTDIR/usr/share/doc } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/zssh $fs/usr/bin ln $fs/usr/bin/zssh $fs/usr/bin/ztelnet }