PACKAGE="python-babel" VERSION="0.9.6" CATEGORY="development" SHORT_DESC="A collection of tools for internationalizing Python applications." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" SOURCE="Babel" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://babel.edgewall.org/" WGET_URL="https://ftp.edgewall.org/pub/babel/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python python-dev python-setuptools" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { python setup.py build && python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs cp -a $install/usr $fs }