wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python3-distro"
4 VERSION="1.6.0"
5 CATEGORY="development"
6 TAGS="python"
7 SHORT_DESC="OS platform information API"
8 MAINTAINER="slitaz@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://pypi.org/project/distro/"
11 REPOLOGY="python:distro"
13 SOURCE="Distro"
14 TARBALL="$SOURCE-$VERSION.tar.gz"
15 WGET_URL="https://github.com/python-distro/distro/archive/refs/tags/v$VERSION.tar.gz"
17 DEPENDS="python3"
18 BUILD_DEPENDS="python3 python3-dev python3-setuptools"
20 HOST_ARCH="i486 x86_64"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://pypi.org/project/Mako/ 2>/dev/null | \
26 sed '/Mako [0-9]/!d;s|.*Mako ||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 python3 setup.py install --root=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }