wok annotate python-cffi/receipt @ rev 25457

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