# HG changeset patch # User Aleksej Bobylev # Date 1534948428 -10800 # Node ID 6ea584ffd39e1ce0af2934ec97d3c5cfc7ce657a # Parent 680393ac1f5c062ddfefe0d436a9ca3a1fb50fca punjab -> python-punjab diff -r 680393ac1f5c -r 6ea584ffd39e punjab/receipt --- a/punjab/receipt Wed Aug 22 17:26:14 2018 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="punjab" -VERSION="0.14" -CATEGORY="network" -SHORT_DESC="HTTP jabber proxy allowing persistent client connections." -MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="GPL2" -WEB_SITE="http://punjab.sourceforge.net" -REPOLOGY="python:punjab" - -TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="http://code.stanziq.com/$PACKAGE/releases/$TARBALL" -CONFIG_FILES="/etc/punjab.tac" - -DEPENDS="python twisted pyopenssl" -BUILD_DEPENDS="python python-dev" - -# 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/* $fs -} diff -r 680393ac1f5c -r 6ea584ffd39e python-punjab/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-punjab/receipt Wed Aug 22 17:33:48 2018 +0300 @@ -0,0 +1,24 @@ +# SliTaz package receipt v2. + +PACKAGE="python-punjab" +VERSION="latest" +CATEGORY="network" +SHORT_DESC="HTTP jabber proxy allowing persistent client connections" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +WEB_SITE="https://pypi.org/project/punjab/" +HOST_ARCH="any" +REPOLOGY="python:punjab" + +BUILD_DEPENDS="python" + +compile_rules() { + pip install --no-compile --root=$DESTDIR punjab +} + +genpkg_rules() { + VERSION=$(sed -n '/^Successfully installed/ s|.*punjab-||p' $LOGS/$PACKAGE.log) + copy @std + DEPENDS="python twisted pyopenssl" + CONFIG_FILES="/etc/punjab.tac" +}