# SliTaz package receipt. PACKAGE="python-xlib" VERSION="0.15rc1" CATEGORY="development" SHORT_DESC="X client library for Python programs." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://$PACKAGE.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/python-xlib/files/python-xlib/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/python-xlib/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { python ./setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }