# SliTaz package receipt. PACKAGE="python-zsi" SOURCE="ZSI" VERSION="2.1-a1" CATEGORY="development" SHORT_DESC="The Zolera Soap Infrastructure for Python." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://pywebsvcs.sourceforge.net/zsi.html" WGET_URL="$SF_MIRROR/project/pywebsvcs/$SOURCE/$SOURCE-${VERSION/-/_}/$TARBALL" DEPENDS="python python-pyxml" BUILD_DEPENDS="python-dev python-setuptools" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/pywebsvcs/files/ZSI/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/ZSI/ZSI-||;s|/.*||;s|_|-|;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 }