wok annotate python-ipaddress/receipt @ rev 25520

created recipes for libluv and libluv-dev 1.44.2.1
author Hans-G?nter Theisgen
date Fri Feb 24 15:44:32 2023 +0100 (20 months ago)
parents
children
rev   line source
pascal@25074 1 # SliTaz package receipt.
pascal@25074 2
pascal@25074 3 PACKAGE="python-ipaddress"
pascal@25074 4 VERSION="1.0.23"
pascal@25074 5 CATEGORY="development"
pascal@25074 6 SHORT_DESC="Port of the 3.3+ ipaddress module."
pascal@25074 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@25074 8 LICENSE="GPL2"
pascal@25074 9 WEB_SITE="https://pypi.org/project/ipaddress/"
pascal@25074 10
pascal@25074 11 SOURCE="ipaddress"
pascal@25074 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@25074 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@25074 14
pascal@25074 15 DEPENDS="python"
pascal@25074 16 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@25074 17
pascal@25074 18 # What is the latest version available today?
pascal@25074 19 current_version()
pascal@25074 20 {
pascal@25074 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@25074 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@25074 23 }
pascal@25074 24
pascal@25074 25 # Rules to configure and make the package.
pascal@25074 26 compile_rules()
pascal@25074 27 {
pascal@25074 28 python setup.py install --prefix=/usr --root=$DESTDIR
pascal@25074 29 }
pascal@25074 30
pascal@25074 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@25074 32 genpkg_rules()
pascal@25074 33 {
pascal@25074 34 mkdir -p $fs/usr
pascal@25074 35
pascal@25074 36 cp -a $install/usr/lib $fs/usr/
pascal@25074 37 }