wok-current annotate python-netaddr/receipt @ rev 24374
avrdude: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 05 17:11:25 2022 +0000 (2022-02-05) |
parents | b2368fbc39f8 |
children | 076f424196b2 |
rev | line source |
---|---|
pascal@14498 | 1 # SliTaz package receipt. |
pascal@14498 | 2 |
pascal@14498 | 3 PACKAGE="python-netaddr" |
Hans-G?nter@23511 | 4 VERSION="0.7.19" |
pascal@14498 | 5 CATEGORY="development" |
pascal@14498 | 6 SHORT_DESC="A network address representation and manipulation library." |
pascal@14498 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 8 LICENSE="BSD" |
Hans-G?nter@23511 | 9 WEB_SITE="https://pypi.org/project/netaddr/" |
Hans-G?nter@23511 | 10 |
Hans-G?nter@23511 | 11 SOURCE="netaddr" |
pascal@14498 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23511 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/n/$SOURCE/$TARBALL" |
pascal@14498 | 14 |
pascal@15378 | 15 DEPENDS="python" |
Hans-G?nter@23511 | 16 BUILD_DEPENDS="python python-dev python-setuptools" |
Hans-G?nter@23511 | 17 |
Hans-G?nter@23511 | 18 HOST_ARCH="i486 arm" |
pascal@15378 | 19 |
pascal@24288 | 20 current_version() |
pascal@24288 | 21 { |
pascal@24288 | 22 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
pascal@24288 | 23 } |
pascal@24288 | 24 |
pascal@14498 | 25 # Rules to configure and make the package. |
pascal@14498 | 26 compile_rules() |
pascal@14498 | 27 { |
pascal@14498 | 28 python setup.py build && |
pascal@14498 | 29 python setup.py install --root=$DESTDIR |
pascal@14498 | 30 } |
pascal@14498 | 31 |
pascal@14498 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14498 | 33 genpkg_rules() |
pascal@14498 | 34 { |
pascal@14498 | 35 mkdir -p $fs |
Hans-G?nter@23511 | 36 cp -a $install/usr $fs |
pascal@14498 | 37 } |