libopencv-python{,3}: depend on numpy

This commit is contained in:
Alessio Sergi 2017-09-20 19:39:04 +02:00
parent dcf222f8f2
commit 09a9edd5d6
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ makedepends="ffmpeg-devel libpng-devel libjpeg-turbo-devel tiff-devel
libgphoto2-devel gst-plugins-base1-devel openblas-devel"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://opencv.org"
license="BSD"
license="3-clause-BSD"
short_desc="Computer vision and machine learning software library"
distfiles="https://github.com/opencv/${pkgname}/archive/${version}.tar.gz"
checksum=95029eb5578af3b20b8c7f8f6f59db1b827c2d5aaaa74b6becb1de647cbdda5a
@ -40,20 +40,20 @@ libopencv-devel_package() {
if [ -z "$CROSS_BUILD" ]; then
# because python-numpy cannot be cross compiled
hostmakedepends+=" python-devel python3-devel"
makedepends+=" python-numpy python3-numpy"
libopencv-python_package() {
short_desc+=" - Python bindings"
short_desc+=" - Python2 bindings"
depends="python-numpy"
pkg_install() {
mkdir -p ${DESTDIR}/usr/lib/python2.7
vmove usr/lib/python2.7
}
}
libopencv-python3_package() {
short_desc+=" - Python3 bindings"
depends="python3-numpy"
pkg_install() {
vmove usr/lib/python3*
}