wok-6.x annotate python-numpy/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
claudinei@3411 | 1 # SliTaz package receipt. |
claudinei@3411 | 2 |
claudinei@3411 | 3 PACKAGE="python-numpy" |
Hans-G?nter@25208 | 4 VERSION="1.16.6" # last version fpr Python 2 |
claudinei@3411 | 5 CATEGORY="development" |
Hans-G?nter@23516 | 6 SHORT_DESC="Scientific computing library for the Python." |
claudinei@3411 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15360 | 8 LICENSE="BSD" |
Hans-G?nter@23516 | 9 WEB_SITE="https://pypi.org/project/numpy/" |
Hans-G?nter@25208 | 10 REPOLOGY="python:numpy" |
Hans-G?nter@23516 | 11 |
Hans-G?nter@23516 | 12 SOURCE="numpy" |
Hans-G?nter@25208 | 13 TARBALL="$SOURCE-$VERSION.zip" |
Hans-G?nter@25208 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15360 | 15 |
claudinei@3411 | 16 DEPENDS="python" |
Hans-G?nter@23516 | 17 BUILD_DEPENDS="python python-cython python-dev python-setuptools" |
claudinei@3411 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
claudinei@3411 | 25 # Rules to configure and make the package. |
claudinei@3411 | 26 compile_rules() |
claudinei@3411 | 27 { |
pascal@15360 | 28 { |
claudinei@3411 | 29 python setup.py build && |
pascal@15360 | 30 python setup.py install --root=$DESTDIR |
pascal@15360 | 31 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)' |
claudinei@3411 | 32 } |
claudinei@3411 | 33 |
claudinei@3411 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3411 | 35 genpkg_rules() |
claudinei@3411 | 36 { |
Hans-G?nter@23516 | 37 cp -a $install/usr $fs |
claudinei@3411 | 38 } |
claudinei@3411 | 39 |
claudinei@3411 | 40 # Remove old package. |
claudinei@3411 | 41 post_install() |
claudinei@3411 | 42 { |
pascal@18730 | 43 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] || |
pascal@18730 | 44 rm -rf "$1/var/lib/tazpkg/installed/numpy" |
pascal@6596 | 45 } |