extra/opencv to 4.5.4-1

This commit is contained in:
Kevin Mihelich 2021-10-10 13:12:50 +00:00
parent 5e8e3fee7e
commit 9fb0bbf5b7

View file

@ -8,8 +8,8 @@
pkgbase=opencv
pkgname=(opencv opencv-samples python-opencv)
pkgver=4.5.3
pkgrel=5
pkgver=4.5.4
pkgrel=1
pkgdesc="Open Source Computer Vision Library"
arch=(x86_64)
license=(BSD)
@ -27,14 +27,15 @@ source=(https://github.com/opencv/opencv/archive/$pkgver/$pkgname-$pkgver.tar.gz
https://github.com/opencv/opencv_contrib/archive/$pkgver/opencv_contrib-$pkgver.tar.gz
opencv-lapack-3.10.patch
0001-link-with-libatomic.patch)
sha256sums=('77f616ae4bea416674d8c373984b20c8bd55e7db887fd38c6df73463a0647bab'
'73da052fd10e73aaba2560eaff10cc5177e2dcc58b27f8aedf7c649e24c233bc'
sha256sums=('c20bb83dd790fc69df9f105477e24267706715a9d3c705ca1e7f613c7b3bad3d'
'ad74b440b4539619dc9b587995a16b691246023d45e34097c73e259f72de9f81'
'f83c64f2731a39910d0d4a48898dd04e4aca5c22f746b7b0ead003992ae11199'
'3376bc87ac7404c6f396f1bee03b76ab0e5cb18829f535bbc97cef71d28ab168')
prepare() {
patch -d $pkgname-$pkgver -p1 < opencv-lapack-3.10.patch # Fix build with LAPACK 3.10
sed -e 's|HAVE_QT5|HAVE_QT|' -i opencv_contrib-$pkgver/modules/cvv/CMakeLists.txt # Fix build of cvv module
cd $pkgname-$pkgver
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
patch -p1 -i ../0001-link-with-libatomic.patch