wok annotate python-cffi/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | 9b196667495f |
children | d85bd79b1552 |
rev | line source |
---|---|
pascal@21810 | 1 # SliTaz package receipt. |
pascal@21810 | 2 |
pascal@21810 | 3 PACKAGE="python-cffi" |
pascal@21810 | 4 VERSION="1.12.3" |
pascal@21810 | 5 CATEGORY="development" |
pascal@21810 | 6 SHORT_DESC="C Foreign Function Interface for Python" |
pascal@21810 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21810 | 8 LICENSE="MIT" |
pascal@21810 | 9 WEB_SITE="https://cffi.readthedocs.io/" |
pascal@21810 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21810 | 11 WGET_URL="https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz#sha256=041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774" |
pascal@21810 | 12 |
pascal@21810 | 13 DEPENDS="python" |
pascal@21810 | 14 BUILD_DEPENDS="python-setuptools python-dev" |
pascal@21810 | 15 |
pascal@24459 | 16 # What is the latest version available today? |
pascal@24459 | 17 current_version() |
pascal@24459 | 18 { |
pascal@24459 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24459 | 20 sed '/html#v/!d;s|.*>v||;s|<.*||;q' |
pascal@24459 | 21 } |
pascal@24459 | 22 |
pascal@21810 | 23 # Rules to configure and make the package. |
pascal@21810 | 24 compile_rules() |
pascal@21810 | 25 { |
pascal@21810 | 26 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@21810 | 27 } |
pascal@21810 | 28 |
pascal@21810 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21810 | 30 genpkg_rules() |
pascal@21810 | 31 { |
pascal@21810 | 32 cp -a $install/usr $fs/ |
pascal@21810 | 33 } |