Date: Monday, January 23, 2023 @ 12:30:47
Author: arojas
Revision: 467243
archrelease: copy trunk to testing-x86_64
Added:
python-numpy/repos/testing-x86_64/
python-numpy/repos/testing-x86_64/PKGBUILD
(from rev 467242, python-numpy/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 467242,
python-numpy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-01-23 12:30:47 UTC (rev 467243)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+
+pkgname=python-numpy
+pkgver=1.24.0
+pkgrel=1
+pkgdesc="Scientific tools for Python"
+arch=('x86_64')
+license=('custom')
+url="https://www.numpy.org/"
+depends=('cblas' 'lapack' 'python')
+optdepends=('openblas: faster linear algebra')
+makedepends=('python-setuptools' 'gcc-fortran' 'cython')
+checkdepends=('python-pytest' 'python-hypothesis')
+options=('staticlibs')
+source=("https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz")
+sha512sums=('3b4e6255b8d39e8504a50ecd3c2ba09d5b16d3f6c70b23b67e4dbf03d1fe390c55030f46090341d39a1ee8228c61ad6212fdc6e4579fcec9e26b4dbe70268661')
+
+build() {
+ cd numpy-$pkgver
+ python setup.py build
+}
+
+check() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd numpy-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ cd "$PWD/tmp_install"
+ PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/$site_packages:$PYTHONPATH"
python -c 'import numpy; numpy.test()'
+}
+
+package() {
+ cd numpy-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -D -m644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/python-numpy/
+}