wok view python-numpy/receipt @ rev 25614
Add libslirp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 03 11:59:41 2023 +0000 (15 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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/numpy/numpy/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 {
30 python setup.py build &&
31 python setup.py install --root=$DESTDIR
32 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }
41 # Remove old package.
42 post_install()
43 {
44 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
45 rm -rf "$1/var/lib/tazpkg/installed/numpy"
46 }