wok-current diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python3-distro/receipt Tue Feb 13 07:22:29 2024 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="python3-distro" 1.7 +VERSION="1.6.0" 1.8 +CATEGORY="development" 1.9 +TAGS="python" 1.10 +SHORT_DESC="OS platform information API" 1.11 +MAINTAINER="slitaz@slitaz.org" 1.12 +LICENSE="MIT" 1.13 +WEB_SITE="https://pypi.org/project/distro/" 1.14 +REPOLOGY="python:distro" 1.15 + 1.16 +SOURCE="Distro" 1.17 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 +WGET_URL="https://github.com/python-distro/distro/archive/refs/tags/v$VERSION.tar.gz" 1.19 + 1.20 +DEPENDS="python3" 1.21 +BUILD_DEPENDS="python3 python3-dev python3-setuptools" 1.22 + 1.23 +# What is the latest version available today? 1.24 +current_version() 1.25 +{ 1.26 + wget -O - https://pypi.org/project/Mako/ 2>/dev/null | \ 1.27 + sed '/Mako [0-9]/!d;s|.*Mako ||;q' 1.28 +} 1.29 + 1.30 +# Rules to configure and make the package. 1.31 +compile_rules() 1.32 +{ 1.33 + python3 setup.py install --root=$DESTDIR 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + cp -a $install/usr $fs 1.40 +}