# SliTaz package receipt. PACKAGE="urlgrabber" VERSION="4.0.0" CATEGORY="development" SHORT_DESC="A high-level cross-protocol URL-grabber and Python library." MAINTAINER="slaxemulator@gmail.com" LICENSE="LGPL2.1" WEB_SITE="http://urlgrabber.baseurl.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}download/$TARBALL" DEPENDS="pycurl python" BUILD_DEPENDS="pycurl python-dev python-setuptools python-six" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { python setup.py install --prefix=/usr --root=$DESTDIR --optimize=1 } # 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/usr/lib $fs/usr }