wok-current annotate python3-distro/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
rev | line source |
---|---|
shann@25634 | 1 # SliTaz package receipt. |
shann@25634 | 2 |
shann@25634 | 3 PACKAGE="python3-distro" |
shann@25634 | 4 VERSION="1.6.0" |
shann@25634 | 5 CATEGORY="development" |
shann@25634 | 6 TAGS="python" |
shann@25634 | 7 SHORT_DESC="OS platform information API" |
shann@25634 | 8 MAINTAINER="slitaz@slitaz.org" |
shann@25634 | 9 LICENSE="MIT" |
shann@25634 | 10 WEB_SITE="https://pypi.org/project/distro/" |
shann@25634 | 11 REPOLOGY="python:distro" |
shann@25634 | 12 |
shann@25634 | 13 SOURCE="Distro" |
shann@25634 | 14 TARBALL="$SOURCE-$VERSION.tar.gz" |
shann@25634 | 15 WGET_URL="https://github.com/python-distro/distro/archive/refs/tags/v$VERSION.tar.gz" |
shann@25634 | 16 |
shann@25634 | 17 DEPENDS="python3" |
shann@25634 | 18 BUILD_DEPENDS="python3 python3-dev python3-setuptools" |
shann@25634 | 19 |
shann@25728 | 20 HOST_ARCH="i486 x86_64" |
shann@25728 | 21 |
shann@25634 | 22 # What is the latest version available today? |
shann@25634 | 23 current_version() |
shann@25634 | 24 { |
shann@25634 | 25 wget -O - https://pypi.org/project/Mako/ 2>/dev/null | \ |
shann@25634 | 26 sed '/Mako [0-9]/!d;s|.*Mako ||;q' |
shann@25634 | 27 } |
shann@25634 | 28 |
shann@25634 | 29 # Rules to configure and make the package. |
shann@25634 | 30 compile_rules() |
shann@25634 | 31 { |
shann@25634 | 32 python3 setup.py install --root=$DESTDIR |
shann@25634 | 33 } |
shann@25634 | 34 |
shann@25634 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
shann@25634 | 36 genpkg_rules() |
shann@25634 | 37 { |
shann@25634 | 38 cp -a $install/usr $fs |
shann@25634 | 39 } |