wok-current view python-numpy/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (9 months ago) |
parents | 5a69b27e347a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-numpy"
4 VERSION="1.16.6" # 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/"
10 REPOLOGY="python:numpy"
12 SOURCE="numpy"
13 TARBALL="$SOURCE-$VERSION.zip"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-cython python-dev python-setuptools"
19 HOST_ARCH="i486 x86_64"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 {
31 python setup.py build &&
32 python 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 }