wok-current annotate python-click/receipt @ rev 24414

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 11:43:39 2022 +0000 (2022-02-10)
parents 1df6fa555414
children d32d64bc318e
rev   line source
pascal@20451 1 # SliTaz package receipt.
pascal@20451 2
pascal@20451 3 PACKAGE="python-click"
Hans-G?nter@23472 4 VERSION="7.1.1"
pascal@20451 5 CATEGORY="development"
Hans-G?nter@23472 6 SHORT_DESC="Composable command line interface toolkit."
pascal@20451 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20451 8 LICENSE="BSD"
pascal@20451 9 WEB_SITE="https://pypi.org/project/click/"
Hans-G?nter@23472 10
Hans-G?nter@23472 11 SOURCE="click"
pascal@20451 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23472 13 WGET_URL="https://files.pythonhosted.org/packages/source/c/$SOURCE/$TARBALL"
pascal@20451 14
pascal@20451 15 DEPENDS="python"
Hans-G?nter@23472 16 BUILD_DEPENDS="python python-setuptools"
pascal@20451 17
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24414 20 wget -O - $WEB_SITE 2>/dev/null | sed '/click [0-9]/!d;s|.*click ||;q'
pascal@24288 21 }
pascal@24288 22
pascal@20451 23 # Rules to configure and make the package.
pascal@20451 24 compile_rules()
pascal@20451 25 {
pascal@20451 26 python setup.py install --prefix=/usr --root=$DESTDIR
pascal@20451 27 }
pascal@20451 28
pascal@20451 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20451 30 genpkg_rules()
pascal@20451 31 {
Hans-G?nter@23472 32 cp -a $install/usr $fs
pascal@20451 33 }