void-packages/srcpkgs/python3-numpy/template

33 lines
991 B
Bash

# Template file for 'python3-numpy'
pkgname=python3-numpy
version=1.18.2
revision=2
wrksrc="numpy-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython gcc-fortran"
makedepends="python3-devel lapack-devel cblas-devel"
depends="python3-setuptools"
checkdepends="python3-pytest"
short_desc="Fast and sophisticated array facility to Python3"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="BSD-3-Clause"
homepage="https://www.numpy.org/"
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
checksum=fdf3ed4e260e1af08b6743527634e85f999caba60d2525c1d6f5aea79f5a6d1f
alternatives="numpy:f2py:/usr/bin/f2py3"
do_check() {
./runtests.py
}
post_install() {
# create compat symlinks for .h files
vmkdir ${py3_inc}
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py3_inc}
rm -f ${DESTDIR}/usr/bin/f2py
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
vlicense LICENSE.txt LICENSE
}