void-packages/srcpkgs/python3-numpy/template
2020-05-10 11:01:23 +02:00

33 lines
994 B
Bash

# Template file for 'python3-numpy'
pkgname=python3-numpy
version=1.18.4
revision=1
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=3f627728d0d3bb8cd94b29e424fd9a456029d88a73d927aa083c83e1114c041b
alternatives="numpy:f2py:/usr/bin/f2py3"
do_check() {
./runtests.py -v
}
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
}