wok view python-netaddr/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (4 weeks ago)
parents 076f424196b2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-netaddr"
4 VERSION="0.8.0"
5 CATEGORY="development"
6 SHORT_DESC="A network address representation and manipulation library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/netaddr/"
10 REPOLOGY="python:netaddr"
12 SOURCE="netaddr"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev python-setuptools"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 python setup.py build &&
31 python setup.py install --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }