wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="python-http-parser"
4 VERSION="0.8.3"
5 CATEGORY="development"
6 SHORT_DESC="HTTP request and response parser for python in C."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/benoitc/http-parser/"
11 SOURCE="http-parser"
12 TARBALL="$SOURCE-$VERSION.zip"
13 WGET_URL="https://github.com/benoitc/$SOURCE/archive/$VERSION.zip"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-cython python-dev python-setuptools"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr $fs
35 }