wok annotate python-http-parser/receipt @ rev 24347
Up expat (2.4.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 02 09:41:22 2022 +0000 (2022-02-02) |
parents | db3b4d40d037 |
children | 076f424196b2 |
rev | line source |
---|---|
claudinei@14877 | 1 # SliTaz package receipt. |
claudinei@14877 | 2 |
claudinei@14877 | 3 PACKAGE="python-http-parser" |
Hans-G?nter@24277 | 4 VERSION="0.9.0" |
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@24277 | 9 WEB_SITE="https://pypi.org/project/http-parser/" |
Hans-G?nter@24277 | 10 REPOLOGY="python:http-parser" |
Hans-G?nter@23493 | 11 |
Hans-G?nter@23493 | 12 SOURCE="http-parser" |
Hans-G?nter@24277 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24277 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/h/$SOURCE/$TARBALL" |
claudinei@14877 | 15 |
claudinei@14877 | 16 DEPENDS="python" |
Hans-G?nter@24277 | 17 BUILD_DEPENDS="python-cython python-dev python-setuptools" |
claudinei@14877 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24278 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24278 | 22 sed '/, version/!d;s|.*version ||;s|<.*||;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
claudinei@14877 | 25 # Rules to configure and make the package. |
claudinei@14877 | 26 compile_rules() |
claudinei@14877 | 27 { |
claudinei@14877 | 28 python setup.py install --root=$DESTDIR |
claudinei@14877 | 29 } |
claudinei@14877 | 30 |
claudinei@14877 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@14877 | 32 genpkg_rules() |
claudinei@14877 | 33 { |
claudinei@14877 | 34 mkdir -p $fs/usr |
Hans-G?nter@24277 | 35 cp -a $install/usr $fs |
claudinei@14877 | 36 } |