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