extra/opencv to 4.0.1-5

This commit is contained in:
Kevin Mihelich 2019-02-07 19:09:55 +00:00
parent 22d2a7b8bf
commit 5859866ff0
2 changed files with 17 additions and 3 deletions

View file

@ -7,7 +7,7 @@
pkgbase=opencv
pkgname=(opencv opencv-samples)
pkgver=4.0.1
pkgrel=4
pkgrel=5
pkgdesc="Open Source Computer Vision Library"
arch=(x86_64)
license=(BSD)
@ -22,12 +22,17 @@ optdepends=('opencv-samples: samples'
'python-numpy: Python interface'
'java-runtime: Java interface')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/opencv/opencv/archive/$pkgver.zip"
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz")
"opencv_contrib-$pkgver.tar.gz::https://github.com/opencv/opencv_contrib/archive/$pkgver.tar.gz"
opencv-includedir.patch)
sha256sums=('b79ccdc4797a959c5ab17249a8a302c066248ae070e4d7010e2d77a625fdb30a'
'0d8acbad4b7074cfaafd906a7419c23629179d5e98894714402090b192ef8237')
'0d8acbad4b7074cfaafd906a7419c23629179d5e98894714402090b192ef8237'
'a96e35c9592e655b21a62cfe04e864a10e21535ad900e5de67356b9e9f40ca10')
prepare() {
mkdir -p build
cd $pkgname-$pkgver
patch -p1 -i ../opencv-includedir.patch # Fix wrong include patch in pkgconfig file
}
build() {

View file

@ -0,0 +1,9 @@
diff -u -r opencv-4.0.1/cmake/templates/opencv-XXX.pc.in opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in
--- opencv-4.0.1/cmake/templates/opencv-XXX.pc.in 2018-12-22 07:03:30.000000000 +0000
+++ opencv-4.0.1-includedir/cmake/templates/opencv-XXX.pc.in 2019-02-07 15:08:15.016613349 +0000
@@ -11,4 +10,4 @@
Version: @OPENCV_VERSION_PLAIN@
Libs: @OPENCV_PC_LIBS@
Libs.private: @OPENCV_PC_LIBS_PRIVATE@
-Cflags: -I${includedir_old} -I${includedir_new}
+Cflags: -I${includedir_new}