# SliTaz package receipt. PACKAGE="twisted" VERSION="20.3.0" CATEGORY="network" SHORT_DESC="Event-driven networking for internet applications." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/twisted/twisted" SOURCE="Twisted" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="https://pypi.python.org/packages/source/T/Twisted/$TARBALL" DEPENDS="python-attrs python-constantly python-incremental zopeinterface" BUILD_DEPENDS="python python-dev python-incremental python-pip python-setuptools zopeinterface" # What is the latest version available today? current_version() { wget -O - https://github.com/twisted/twisted/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;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() { cp -a $install/usr $fs }