wok-current annotate python-cython/receipt @ rev 24426
updated cmatrix (1.2a -> 2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 11:04:56 2022 +0100 (2022-02-12) |
parents | f8147fa290f4 |
children | c1d6498c42dd |
rev | line source |
---|---|
pankso@9338 | 1 # SliTaz package receipt. |
pankso@9338 | 2 |
pankso@9338 | 3 PACKAGE="python-cython" |
Hans-G?nter@23477 | 4 VERSION="0.29.16" |
pankso@9338 | 5 CATEGORY="development" |
pankso@9338 | 6 SHORT_DESC="Language to write C extensions for Python." |
pankso@9338 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 8 LICENSE="Apache" |
Hans-G?nter@21796 | 9 WEB_SITE="https://pypi.org/project/cython/" |
Hans-G?nter@21796 | 10 |
Hans-G?nter@21796 | 11 SOURCE="cython" |
pankso@9338 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@21797 | 13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/$VERSION.tar.gz" |
pascal@15379 | 14 |
pankso@9338 | 15 DEPENDS="python" |
Hans-G?nter@23477 | 16 BUILD_DEPENDS="python python-dev" |
pankso@9338 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;/[0-9]a[0-9]/d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pankso@9338 | 24 # Rules to configure and make the package. |
pankso@9338 | 25 compile_rules() |
pankso@9338 | 26 { |
pankso@9338 | 27 python setup.py build && |
pascal@13595 | 28 python setup.py install --root=$DESTDIR |
pankso@9338 | 29 } |
pankso@9338 | 30 |
pankso@9338 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@9338 | 32 genpkg_rules() |
pankso@9338 | 33 { |
pankso@9338 | 34 mkdir -p $fs |
Hans-G?nter@23477 | 35 cp -a $install/usr $fs |
pankso@9338 | 36 } |