void-packages/srcpkgs/python-numpy/template
2019-08-31 14:20:59 +02:00

30 lines
1,017 B
Bash

# Template file for 'python-numpy'
pkgname=python-numpy
version=1.16.5
revision=1
wrksrc="numpy-${version}"
build_style=python2-module
pycompile_module="numpy"
hostmakedepends="python-setuptools python-Cython gcc-fortran"
makedepends="python-devel lapack-devel cblas-devel"
short_desc="Fast and sophisticated array facility to Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.numpy.org/"
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
checksum=3c82a9b8616e3096a79a2af9c288d8ed4013a10fc7baf3eaf54655309734dadd
alternatives="numpy:f2py:/usr/bin/f2py2"
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/1408/steps/shell_3/logs/stdio"
post_install() {
# create compat symlinks for .h files
vmkdir ${py2_inc}
ln -sfr ${DESTDIR}/${py2_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py2_inc}
rm -f ${DESTDIR}/usr/bin/f2py
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
vlicense LICENSE.txt LICENSE
}