wok annotate python-pip/receipt @ rev 25857

Fix reset menu.xml symlink when upgrade slitaz-configs
author Stanislas Leduc <shann@slitaz.org>
date Thu Aug 07 17:10:52 2025 +0000 (4 weeks ago)
parents 797927236536
children
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@25601 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@25601 22 wget -O - https://github.com/pypa/pip/tags 2>/dev/null | \
pascal@25601 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
pascal@21199 26 # Rules to configure and make the package.
pascal@21199 27 compile_rules()
pascal@21199 28 {
pascal@21199 29 python setup.py build &&
pascal@21199 30 python setup.py install --root=$DESTDIR
pascal@21199 31 }
pascal@21199 32
pascal@21199 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21199 34 genpkg_rules()
pascal@21199 35 {
Hans-Günter@23529 36 cp -a $install/usr $fs
pascal@21199 37 }