# SliTaz package receipt. PACKAGE="ctorrent-dnh" VERSION="3.3.2" CATEGORY="network" SHORT_DESC="Command line Bittorrent client." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" TARBALL="${PACKAGE}$VERSION.tar.gz" WEB_SITE="http://www.rahul.net/dholmes/ctorrent/" WGET_URL="$SF_MIRROR/dtorrent/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/dtorrent/files/dtorrent/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/dtorrent/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --with-ssl=no \ $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 # Torrentbox cp $stuff/torrentbox $fs/usr/bin }