wok-6.x annotate python-ipy/receipt @ rev 24565

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 22:15:31 2022 +0000 (2022-02-25)
parents 095836df71b7
children 4af3f9be894a
rev   line source
pascal@3791 1 # SliTaz package receipt.
pascal@3791 2
pascal@3791 3 PACKAGE="python-ipy"
Hans-G?nter@23497 4 VERSION="1.00"
pascal@3791 5 CATEGORY="development"
pascal@3791 6 SHORT_DESC="Python class and tools for IPv4 and IPv6 addresses and networks."
pascal@3791 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 8 LICENSE="BSD"
pascal@24326 9 WEB_SITE="https://pypi.org/project/IPy/"
Hans-G?nter@23497 10
pascal@3791 11 SOURCE="IPy"
pascal@3791 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23497 13 WGET_URL="https://files.pythonhosted.org/packages/source/I/$SOURCE/$TARBALL"
pascal@3791 14
pascal@15378 15 DEPENDS="python"
pascal@17742 16 BUILD_DEPENDS="python"
pascal@15378 17
pascal@24326 18 # What is the latest version available today?
pascal@24288 19 current_version()
pascal@24288 20 {
pascal@24383 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q"
pascal@24288 22 }
pascal@24288 23
pascal@3791 24 # Rules to configure and make the package.
pascal@3791 25 compile_rules()
pascal@3791 26 {
Hans-G?nter@23497 27 python setup.py build &&
pascal@15378 28 python setup.py install --root=$DESTDIR
pascal@3791 29 }
pascal@3791 30
pascal@3791 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3791 32 genpkg_rules()
pascal@3791 33 {
pascal@3791 34 mkdir -p $fs/usr
Hans-G?nter@23497 35 cp -a $install/usr/lib $fs/usr
pascal@3791 36 }