# SliTaz package receipt. PACKAGE="tsocks" VERSION="1.8beta5" CATEGORY="network" SHORT_DESC="A transparent SOCKS proxying library." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://tsocks.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/tsocks/files/tsocks/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/tsocks-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ $CONFIGURE_ARGS make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/lib $fs }