wok view python-numpy/receipt @ rev 25555

Up gsoap (2.8.127)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 19 10:00:25 2023 +0000 (19 months ago)
parents 5ea0ce1cecc0
children 0262035dc1e7
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 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 {
29 python setup.py build &&
30 python setup.py install --root=$DESTDIR
31 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }
40 # Remove old package.
41 post_install()
42 {
43 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
44 rm -rf "$1/var/lib/tazpkg/installed/numpy"
45 }