wok view py3k-numpy/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 5ea0ce1cecc0 |
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CC=gcc-83
29 export CXX=g++-83
31 {
32 python3 setup.py build &&
33 python3 setup.py install --root=$DESTDIR
34 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }
43 # Remove old package.
44 post_install()
45 {
46 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
47 rm -rf "$1/var/lib/tazpkg/installed/numpy"
48 }