wok annotate py3k-six/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (15 months ago)
parents bf5cc66f2a2b
children
rev   line source
Hans-G?nter@25483 1 # SliTaz package receipt.
Hans-G?nter@25483 2
Hans-G?nter@25483 3 PACKAGE="py3k-six"
Hans-G?nter@25483 4 VERSION="1.16.0"
Hans-G?nter@25483 5 CATEGORY="development"
Hans-G?nter@25483 6 SHORT_DESC="Six is a Python 2 and 3 compatibility library."
Hans-G?nter@25483 7 MAINTAINER="maintainer@slitaz.org"
Hans-G?nter@25483 8 LICENSE="MIT"
Hans-G?nter@25483 9 WEB_SITE="https://pypi.org/project/six/"
Hans-G?nter@25483 10 REPOLOGY="python:six"
Hans-G?nter@25483 11
Hans-G?nter@25483 12 SOURCE="six"
Hans-G?nter@25483 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@25483 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
Hans-G?nter@25483 15
Hans-G?nter@25483 16 DEPENDS="py3k"
Hans-G?nter@25483 17 BUILD_DEPENDS="py3k-dev py3k-setuptools_scm"
Hans-G?nter@25483 18
Hans-G?nter@25483 19 HOST_ARCH="i486 arm"
Hans-G?nter@25483 20
pascal@25532 21 # What is the latest version available today?
pascal@25532 22 current_version()
pascal@25532 23 {
pascal@25532 24 wget -O - $WEB_SITE 2>/dev/null | \
pascal@25532 25 sed '/release_/!d;/project/!d;s|.*six/||;s|/.*||;q'
pascal@25532 26 }
pascal@25532 27
Hans-G?nter@25483 28 # Rules to configure and make the package.
Hans-G?nter@25483 29 compile_rules()
Hans-G?nter@25483 30 {
Hans-G?nter@25483 31 python3 setup.py install --root=$DESTDIR
Hans-G?nter@25483 32 }
Hans-G?nter@25483 33
Hans-G?nter@25483 34 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@25483 35 genpkg_rules()
Hans-G?nter@25483 36 {
Hans-G?nter@25483 37 cook_copy_folders lib
Hans-G?nter@25483 38 }