wok view python-numpy/receipt @ rev 24318
updated adwaita-icon-theme (3.34.3 -> 41.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 25 14:40:52 2022 +0100 (2022-01-25) |
parents | 74b39318b0a3 |
children | 5a69b27e347a |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-numpy"
4 VERSION="1.16.4" # last version fpr Python 2
5 CATEGORY="development"
6 SHORT_DESC="Scientific computing library for the Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/numpy/"
11 SOURCE="numpy"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-cython python-dev python-setuptools"
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 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }
39 # Remove old package.
40 post_install()
41 {
42 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
43 rm -rf "$1/var/lib/tazpkg/installed/numpy"
44 }