# SliTaz package receipt. PACKAGE="jtoolkit" VERSION="0.7.8" CATEGORY="system-tools" SHORT_DESC="Python web application framework built on modpython and Apache." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" SOURCE="jToolkit" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://$PACKAGE.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/jtoolkit/files/jtoolkit/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/jtoolkit/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { python jToolkitSetup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/lib $fs/usr }