wok-current annotate python-netaddr/receipt @ rev 25017
updated openjpeg, openjpeg-dev and openjpeg-tools (1.5.0 -> 1.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 18 06:55:41 2022 +0100 (2022-05-18) |
parents | 1df6fa555414 |
children | f11c5374a9c6 |
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@24383 | 20 # What is the latest version available today? |
pascal@24288 | 21 current_version() |
pascal@24288 | 22 { |
pascal@24383 | 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 24 } |
pascal@24288 | 25 |
pascal@14498 | 26 # Rules to configure and make the package. |
pascal@14498 | 27 compile_rules() |
pascal@14498 | 28 { |
pascal@14498 | 29 python setup.py build && |
pascal@14498 | 30 python setup.py install --root=$DESTDIR |
pascal@14498 | 31 } |
pascal@14498 | 32 |
pascal@14498 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14498 | 34 genpkg_rules() |
pascal@14498 | 35 { |
pascal@14498 | 36 mkdir -p $fs |
Hans-G?nter@23511 | 37 cp -a $install/usr $fs |
pascal@14498 | 38 } |