extra/opencv to 3.3.0-1

This commit is contained in:
Kevin Mihelich 2017-08-24 12:16:40 +00:00
parent 350d04f17c
commit 6f851612be

View file

@ -8,8 +8,8 @@
pkgbase=opencv
pkgname=('opencv' 'opencv-samples')
pkgver=3.2.0
pkgrel=5
pkgver=3.3.0
pkgrel=1
pkgdesc="Open Source Computer Vision Library"
arch=('i686' 'x86_64')
license=('BSD')
@ -25,8 +25,8 @@ optdepends=('opencv-samples'
'python2-numpy: Python 2 interface')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/Itseez/opencv/archive/$pkgver.zip"
"opencv_contrib-$pkgver.tar.gz::https://github.com/Itseez/opencv_contrib/archive/$pkgver.tar.gz")
md5sums=('bfc6a261eb069b709bcfe7e363ef5899'
'd7d50c70c31df3b31310f548f31fd2a2')
md5sums=('cc586ebe960a7cdd87100e89088abc06'
'7878ff39d3488b335861831419d30c64')
_cmakeopts=('-D WITH_OPENCL=ON'
'-D WITH_OPENGL=ON'
@ -53,11 +53,12 @@ _cmakeopts=('-D WITH_OPENCL=ON'
'-D ENABLE_SSE3=OFF')
build() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build
cd build
cmake ${_cmakeopts[@]} \
-DOPENCV_EXTRA_MODULES_PATH="$srcdir/opencv_contrib-$pkgver/modules" \
.
../$pkgname-$pkgver
make
}
@ -65,7 +66,7 @@ build() {
package_opencv() {
options=('staticlibs')
cd "$srcdir/$pkgname-$pkgver"
cd build
make DESTDIR="$pkgdir" install