wok annotate python-setuptools/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (6 days ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
Hans-G?nter@21578 | 1 # SliTaz package receipt. |
Hans-G?nter@21578 | 2 |
Hans-G?nter@21578 | 3 PACKAGE="python-setuptools" |
Hans-G?nter@23559 | 4 VERSION="46.1.3" |
Hans-G?nter@21578 | 5 CATEGORY="development" |
Hans-G?nter@21578 | 6 SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages." |
Hans-G?nter@23559 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@21578 | 8 LICENSE="MIT" |
Hans-G?nter@21578 | 9 WEB_SITE="https://pypi.org/project/setuptools/" |
Hans-G?nter@21578 | 10 |
Hans-G?nter@21578 | 11 SOURCE="setuptools" |
Hans-G?nter@21578 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@21578 | 13 WGET_URL="https://github.com/pypa/$SOURCE/archive/v$VERSION.tar.gz" |
Hans-G?nter@21578 | 14 |
Hans-G?nter@21578 | 15 DEPENDS="python" |
Hans-G?nter@23559 | 16 BUILD_DEPENDS="python python-dev" |
Hans-G?nter@21578 | 17 |
pascal@25601 | 18 # What is the latest version available today? |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
Hans-G?nter@21578 | 25 # Rules to configure and make the package. |
Hans-G?nter@21578 | 26 compile_rules() |
Hans-G?nter@21578 | 27 { |
Hans-G?nter@21578 | 28 python bootstrap.py && |
Hans-G?nter@21578 | 29 python setup.py build && |
Hans-G?nter@21578 | 30 python setup.py install --root=$DESTDIR |
Hans-G?nter@21578 | 31 } |
Hans-G?nter@21578 | 32 |
Hans-G?nter@21578 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@21578 | 34 genpkg_rules() |
Hans-G?nter@21578 | 35 { |
Hans-G?nter@23559 | 36 cp -a $install/usr $fs |
Hans-G?nter@21578 | 37 } |