wok-current annotate python-pip/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 | 4fbe3396c265 |
children | ac8ca9758df1 |
rev | line source |
---|---|
pascal@21199 | 1 # SliTaz package receipt. |
pascal@21199 | 2 |
pascal@21199 | 3 PACKAGE="python-pip" |
pascal@21199 | 4 SOURCE="pip" |
Hans-G?nter@23529 | 5 VERSION="20.0.2" |
pascal@21199 | 6 CATEGORY="development" |
Hans-G?nter@23529 | 7 SHORT_DESC="The PyPA recommended tool for installing Python packages." |
pascal@21199 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21199 | 9 LICENSE="MIT" |
Hans-G?nter@23529 | 10 WEB_SITE="https://pip.pypa.io/" |
Hans-G?nter@23529 | 11 |
pascal@21199 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@21199 | 13 WGET_URL="https://github.com/pypa/pip/archive/$VERSION.tar.gz" |
pascal@21199 | 14 |
pascal@21200 | 15 DEPENDS="python" |
Hans-G?nter@23529 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@21199 | 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 |
pascal@21199 | 24 # Rules to configure and make the package. |
pascal@21199 | 25 compile_rules() |
pascal@21199 | 26 { |
pascal@21199 | 27 python setup.py build && |
pascal@21199 | 28 python setup.py install --root=$DESTDIR |
pascal@21199 | 29 } |
pascal@21199 | 30 |
pascal@21199 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21199 | 32 genpkg_rules() |
pascal@21199 | 33 { |
Hans-G?nter@23529 | 34 cp -a $install/usr $fs |
pascal@21199 | 35 } |