diff --git a/srcpkgs/python3-numpy/template b/srcpkgs/python3-numpy/template new file mode 100644 index 00000000000..6cf4bb72608 --- /dev/null +++ b/srcpkgs/python3-numpy/template @@ -0,0 +1,30 @@ +# Template file for 'python3-numpy' +pkgname=python3-numpy +version=1.17.0 +revision=1 +wrksrc="numpy-${version}" +build_style=python3-module +pycompile_module="numpy" +hostmakedepends="python3-setuptools python3-Cython gcc-fortran" +makedepends="python3-devel lapack-devel cblas-devel" +short_desc="Fast and sophisticated array facility to Python3" +maintainer="bra1nwave " +license="BSD-3-Clause" +homepage="https://www.numpy.org/" +distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz" +checksum=56b53127c1d9dbb91fe1493646d71d8d95feea8320a1fa9808c9d983d1dc4a87 +alternatives="numpy:f2py:/usr/bin/f2py3" + +nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/1408/steps/shell_3/logs/stdio" + +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 +} diff --git a/srcpkgs/python3-numpy/update b/srcpkgs/python3-numpy/update new file mode 100644 index 00000000000..8b7d6d06863 --- /dev/null +++ b/srcpkgs/python3-numpy/update @@ -0,0 +1 @@ +ignore="*a* *b* *rc* *post*"