wok annotate python-http-parser/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents a16dbc780c76
children db3b4d40d037
rev   line source
claudinei@14877 1 # SliTaz package receipt.
claudinei@14877 2
claudinei@14877 3 PACKAGE="python-http-parser"
Hans-G?nter@23493 4 VERSION="0.8.3"
claudinei@14877 5 CATEGORY="development"
Hans-G?nter@23493 6 SHORT_DESC="HTTP request and response parser for python in C."
claudinei@14877 7 MAINTAINER="claudinei@slitaz.org"
pascal@15379 8 LICENSE="MIT"
Hans-G?nter@23493 9 WEB_SITE="https://github.com/benoitc/http-parser/"
Hans-G?nter@23493 10
Hans-G?nter@23493 11 SOURCE="http-parser"
pascal@14882 12 TARBALL="$SOURCE-$VERSION.zip"
pascal@14882 13 WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
claudinei@14877 14
claudinei@14877 15 DEPENDS="python"
Hans-G?nter@23493 16 BUILD_DEPENDS="python python-cython python-dev python-setuptools"
claudinei@14877 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
claudinei@14877 24 # Rules to configure and make the package.
claudinei@14877 25 compile_rules()
claudinei@14877 26 {
claudinei@14877 27 python setup.py install --root=$DESTDIR
claudinei@14877 28 }
claudinei@14877 29
claudinei@14877 30 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@14877 31 genpkg_rules()
claudinei@14877 32 {
claudinei@14877 33 mkdir -p $fs/usr
Hans-G?nter@23493 34 cp -a $install/usr $fs
claudinei@14877 35 }