wok-6.x view py3k-numpy/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents 781c5980ae6b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k-numpy"
4 VERSION="1.17.5"
5 CATEGORY="development"
6 SHORT_DESC="Scientific computing library for Python."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://numpy.org/"
11 SOURCE="numpy"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz"
15 DEPENDS="gcc83-lib-base py3k"
16 BUILD_DEPENDS="gcc83 py3k-dev py3k-cython"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export CC=gcc-83
28 export CXX=g++-83
30 {
31 python3 setup.py build &&
32 python3 setup.py install --root=$DESTDIR
33 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }
42 # Remove old package.
43 post_install()
44 {
45 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
46 rm -rf "$1/var/lib/tazpkg/installed/numpy"
47 }