Date: Sunday, July 3, 2022 @ 20:13:45 Author: arojas Revision: 449851
archrelease: copy trunk to testing-x86_64 Added: python-numpy/repos/testing-x86_64/ python-numpy/repos/testing-x86_64/PKGBUILD (from rev 449850, python-numpy/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 449850, python-numpy/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2022-07-03 20:13:45 UTC (rev 449851) @@ -0,0 +1,38 @@ +# Maintainer: Jan de Groot <j...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Douglas Soares de Andrade <d...@aur.archlinux.org> +# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> + +pkgname=python-numpy +pkgver=1.23.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=('899d0ca062b676b64de0da204339694dcb7e52f257625e971f9a8ad7267206a6ad2924353e4dd1e153b4a64ae318380899c9e1ee7a6f53fdeba4c19b34917583') + +build() { + cd numpy-$pkgver + python setup.py build +} + +check() { + cd numpy-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + cd "$PWD/tmp_install" + PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.10/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/ +}