wok-6.x annotate python-flup/receipt @ rev 24459

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 11:53:30 2022 +0000 (2022-02-16)
parents 1df6fa555414
children
rev   line source
pankso@10438 1 # SliTaz package receipt.
pankso@10438 2
pankso@10438 3 PACKAGE="python-flup"
Hans-G?nter@23483 4 VERSION="1.0.3"
pankso@10438 5 CATEGORY="network"
pankso@10438 6 SHORT_DESC="Random collection of WSGI modules for Python."
pankso@10438 7 MAINTAINER="pankso@slitaz.org"
pascal@15378 8 LICENSE="BSD"
Hans-G?nter@23483 9 WEB_SITE="https://pypi.org/project/flup/"
Hans-G?nter@23483 10
pankso@10438 11 SOURCE="flup"
pankso@10438 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23483 13 WGET_URL="https://files.pythonhosted.org/packages/source/f/$SOURCE/$TARBALL"
pankso@10438 14
pascal@15378 15 DEPENDS="python"
pascal@21582 16 BUILD_DEPENDS="python python-dev python-distribute python-setuptools"
pascal@15378 17
pascal@24383 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|<.*||"
pascal@24288 22 }
pascal@24288 23
pankso@10438 24 # Rules to configure and make the package.
pankso@10438 25 compile_rules()
pankso@10438 26 {
pankso@10438 27 python setup.py build &&
pankso@10438 28 python setup.py install --root=$DESTDIR
pankso@10438 29 }
pankso@10438 30
pankso@10438 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10438 32 genpkg_rules()
pankso@10438 33 {
pankso@10438 34 mkdir -p $fs
Hans-G?nter@23483 35 cp -a $install/usr $fs
pankso@10438 36 }