wok annotate py3k-numpy/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | 781c5980ae6b |
children | 0262035dc1e7 |
rev | line source |
---|---|
Hans-G?nter@22552 | 1 # SliTaz package receipt. |
Hans-G?nter@22552 | 2 |
Hans-G?nter@22552 | 3 PACKAGE="py3k-numpy" |
Hans-G?nter@22552 | 4 VERSION="1.17.5" |
Hans-G?nter@22552 | 5 CATEGORY="development" |
Hans-G?nter@22552 | 6 SHORT_DESC="Scientific computing library for Python." |
Hans-G?nter@22552 | 7 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@22552 | 8 LICENSE="BSD" |
Hans-G?nter@22552 | 9 WEB_SITE="https://numpy.org/" |
Hans-G?nter@22552 | 10 |
Hans-G?nter@22552 | 11 SOURCE="numpy" |
Hans-G?nter@22552 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22552 | 13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz" |
Hans-G?nter@22552 | 14 |
Hans-G?nter@22552 | 15 DEPENDS="gcc83-lib-base py3k" |
Hans-G?nter@22552 | 16 BUILD_DEPENDS="gcc83 py3k-dev py3k-cython" |
Hans-G?nter@22552 | 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;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
Hans-G?nter@22552 | 24 # Rules to configure and make the package. |
Hans-G?nter@22552 | 25 compile_rules() |
Hans-G?nter@22552 | 26 { |
Hans-G?nter@22552 | 27 export CC=gcc-83 |
Hans-G?nter@22552 | 28 export CXX=g++-83 |
Hans-G?nter@22552 | 29 |
Hans-G?nter@22552 | 30 { |
Hans-G?nter@22552 | 31 python3 setup.py build && |
Hans-G?nter@22552 | 32 python3 setup.py install --root=$DESTDIR |
Hans-G?nter@22552 | 33 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)' |
Hans-G?nter@22552 | 34 } |
Hans-G?nter@22552 | 35 |
Hans-G?nter@22552 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@22552 | 37 genpkg_rules() |
Hans-G?nter@22552 | 38 { |
Hans-G?nter@22552 | 39 cp -a $install/usr $fs |
Hans-G?nter@22552 | 40 } |
Hans-G?nter@22552 | 41 |
Hans-G?nter@22552 | 42 # Remove old package. |
Hans-G?nter@22552 | 43 post_install() |
Hans-G?nter@22552 | 44 { |
Hans-G?nter@22552 | 45 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] || |
Hans-G?nter@22552 | 46 rm -rf "$1/var/lib/tazpkg/installed/numpy" |
Hans-G?nter@22552 | 47 } |