wok-current annotate python3-distro/receipt @ rev 25653
lzo needed from fsarchiver
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 13 07:22:29 2024 +0100 (6 months ago) |
parents | |
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@25634 | 20 # What is the latest version available today? |
shann@25634 | 21 current_version() |
shann@25634 | 22 { |
shann@25634 | 23 wget -O - https://pypi.org/project/Mako/ 2>/dev/null | \ |
shann@25634 | 24 sed '/Mako [0-9]/!d;s|.*Mako ||;q' |
shann@25634 | 25 } |
shann@25634 | 26 |
shann@25634 | 27 # Rules to configure and make the package. |
shann@25634 | 28 compile_rules() |
shann@25634 | 29 { |
shann@25634 | 30 python3 setup.py install --root=$DESTDIR |
shann@25634 | 31 } |
shann@25634 | 32 |
shann@25634 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
shann@25634 | 34 genpkg_rules() |
shann@25634 | 35 { |
shann@25634 | 36 cp -a $install/usr $fs |
shann@25634 | 37 } |