wok diff python-ipaddress/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-ipaddress/receipt	Mon Jun 13 19:39:39 2022 +0000
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="python-ipaddress"
     1.7 +VERSION="1.0.23"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Port of the 3.3+ ipaddress module."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="https://pypi.org/project/ipaddress/"
    1.13 +
    1.14 +SOURCE="ipaddress"
    1.15 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.16 +WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    1.17 +
    1.18 +DEPENDS="python"
    1.19 +BUILD_DEPENDS="python python-dev python-setuptools"
    1.20 +
    1.21 +# What is the latest version available today?
    1.22 +current_version()
    1.23 +{
    1.24 +	wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
    1.25 +	sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
    1.26 +}
    1.27 +
    1.28 +# Rules to configure and make the package.
    1.29 +compile_rules()
    1.30 +{
    1.31 +	python setup.py install --prefix=/usr --root=$DESTDIR
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr
    1.38 +
    1.39 +	cp -a $install/usr/lib	$fs/usr/
    1.40 +}