wok annotate python-markupsafe/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents 6459e4820526
children
rev   line source
pascal@24391 1 # SliTaz package receipt.
pascal@24391 2
pascal@9669 3 PACKAGE="python-markupsafe"
Hans-G?nter@23506 4 VERSION="1.1.1"
pascal@9669 5 CATEGORY="development"
pascal@9669 6 SHORT_DESC="Implements a XML/HTML/XHTML Markup safe string for Python."
pascal@9669 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 8 LICENSE="BSD"
Hans-G?nter@23506 9 WEB_SITE="https://pypi.python.org/pypi/MarkupSafe"
Hans-G?nter@23506 10
pascal@9669 11 SOURCE="MarkupSafe"
pascal@9669 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23506 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@15378 14
pascal@9669 15 DEPENDS="python"
pascal@21582 16 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@9669 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 23 }
pascal@24391 24
pascal@9669 25 # Rules to configure and make the package.
pascal@9669 26 compile_rules()
pascal@9669 27 {
pascal@9669 28 python setup.py build &&
pascal@15378 29 python setup.py install --root=$DESTDIR
pascal@9669 30 }
pascal@9669 31
pascal@9669 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@9669 33 genpkg_rules()
pascal@9669 34 {
pascal@9669 35 mkdir -p $fs
Hans-G?nter@23506 36 cp -a $install/usr $fs
pascal@9669 37 }