# SliTaz package receipt. PACKAGE="speedtouch" VERSION="1.3.1" CATEGORY="misc" MAINTAINER="jozee@slitaz.org" LICENSE="GPL2" SHORT_DESC="Driver for the ADSL Speed Touch USB modem" WEB_SITE="https://speedtouch.sourceforge.net/" DEPENDS="bash" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/speedtouch/files/speedtouch%20driver/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/speedtouch%20driver/Release%20||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src while read file; do [ -f done.$file ] && continue echo "Apply $file..." patch -p1 < $stuff/$PACKAGE-$VERSION-$file || return 1 touch done.$file done <