wok annotate python-future/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (16 months ago)
parents
children
rev   line source
pascal@24985 1 # SliTaz package receipt.
pascal@24985 2
pascal@24985 3 PACKAGE="python-future"
pascal@24985 4 VERSION="0.18.2"
pascal@24985 5 CATEGORY="development"
pascal@24985 6 SHORT_DESC="The missing compatibility layer between Python 2 and Python 3."
pascal@24985 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24985 8 LICENSE="MIT"
pascal@24985 9 SOURCE="future"
pascal@24985 10 WEB_SITE="https://pypi.org/project/$SOURCE/"
pascal@24985 11
pascal@24985 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24985 13 WGET_URL="https://files.pythonhosted.org/packages/source/f/$SOURCE/$TARBALL"
pascal@24985 14
pascal@24985 15 DEPENDS="python"
pascal@24985 16 BUILD_DEPENDS="python python-setuptools"
pascal@24985 17
pascal@24985 18 # What is the latest version available today?
pascal@24985 19 current_version()
pascal@24985 20 {
pascal@24985 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24985 22 }
pascal@24985 23
pascal@24985 24 # Rules to configure and make the package.
pascal@24985 25 compile_rules()
pascal@24985 26 {
pascal@24985 27 python setup.py install --root=$DESTDIR
pascal@24985 28 }
pascal@24985 29
pascal@24985 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24985 31 genpkg_rules()
pascal@24985 32 {
pascal@24985 33 cp -a $install/usr $fs
pascal@24985 34 }