wok annotate python-netifaces/receipt @ rev 25580
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 07:58:44 2023 +0000 (15 months ago) |
parents | 0c663fa81568 |
children | 1e09c4c56491 |
rev | line source |
---|---|
monghitri@13951 | 1 # SliTaz package receipt. |
monghitri@13951 | 2 |
monghitri@13951 | 3 PACKAGE="python-netifaces" |
Hans-G?nter@25207 | 4 VERSION="0.11.0" |
monghitri@13951 | 5 CATEGORY="development" |
monghitri@13951 | 6 SHORT_DESC="Portable access to network interfaces from Python." |
monghitri@13951 | 7 MAINTAINER="monghitri@aruba.it" |
pascal@15378 | 8 LICENSE="MIT" |
pascal@25436 | 9 SOURCE="netifaces" |
Hans-G?nter@25207 | 10 WEB_SITE="https://pypi.org/project/$SOURCE/" |
Hans-G?nter@25207 | 11 REPOLOGY="python:netifaces" |
Hans-G?nter@25207 | 12 |
monghitri@13951 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25207 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15378 | 15 |
monghitri@13951 | 16 DEPENDS="python" |
Hans-G?nter@23512 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
monghitri@13951 | 18 |
pascal@24383 | 19 # What is the latest version available today? |
pascal@24288 | 20 current_version() |
pascal@24288 | 21 { |
pascal@24383 | 22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 23 } |
pascal@24288 | 24 |
monghitri@13951 | 25 # Rules to configure and make the package. |
monghitri@13951 | 26 compile_rules() |
monghitri@13951 | 27 { |
monghitri@13951 | 28 python setup.py install --root=$DESTDIR |
monghitri@13951 | 29 } |
monghitri@13951 | 30 |
monghitri@13951 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
monghitri@13951 | 32 genpkg_rules() |
monghitri@13951 | 33 { |
Hans-G?nter@23512 | 34 cp -a $install/usr $fs |
monghitri@13951 | 35 } |