wok annotate python-pip/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | ac8ca9758df1 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@21199 | 1 # SliTaz package receipt. |
pascal@21199 | 2 |
pascal@21199 | 3 PACKAGE="python-pip" |
Hans-G?nter@25219 | 4 VERSION="20.3.4" # last version for Python 2 |
pascal@21199 | 5 CATEGORY="development" |
Hans-G?nter@23529 | 6 SHORT_DESC="The PyPA recommended tool for installing Python packages." |
pascal@21199 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21199 | 8 LICENSE="MIT" |
Hans-G?nter@25219 | 9 WEB_SITE="https://pypi.org/project/pip/" |
Hans-G?nter@25219 | 10 REPOLOGY="python:pip" |
Hans-G?nter@23529 | 11 |
Hans-G?nter@25219 | 12 SOURCE="pip" |
pascal@21199 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25219 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@21199 | 15 |
pascal@21200 | 16 DEPENDS="python" |
Hans-G?nter@23529 | 17 BUILD_DEPENDS="python python-setuptools" |
pascal@21199 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24299 | 21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@21199 | 25 # Rules to configure and make the package. |
pascal@21199 | 26 compile_rules() |
pascal@21199 | 27 { |
pascal@21199 | 28 python setup.py build && |
pascal@21199 | 29 python setup.py install --root=$DESTDIR |
pascal@21199 | 30 } |
pascal@21199 | 31 |
pascal@21199 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21199 | 33 genpkg_rules() |
pascal@21199 | 34 { |
Hans-G?nter@23529 | 35 cp -a $install/usr $fs |
pascal@21199 | 36 } |