summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Mamzikov2019-01-10 07:46:16 +0500
committerAlexander Mamzikov2019-01-10 07:46:16 +0500
commitc830f834c9d30ae3c72ce3400c35b859507e4144 (patch)
treea1a459e2d50718a0e11acb81efe54860612b1f20
parent903455a8ab4ecc6f09ffd3359208afee2db5c0b1 (diff)
downloadaur-c830f834c9d30ae3c72ce3400c35b859507e4144.tar.gz
opencv fix
-rw-r--r--PKGBUILD13
-rw-r--r--opencv4.patch12
2 files changed, 22 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 729b26a86b5..21bbc8ab43e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgver=1.11.0
pkgrel=1
pkgdesc="Viewer/editor for stereoscopic 3d photo and video"
arch=('i686' 'x86_64')
-url="https://stereophotoview.bitbucket.io"
+url="https://stereophotoview.bitbucket.io/en"
license=('GPL3')
groups=()
depends=(libpng qt5-base qt5-declarative ffmpeg opencv)
@@ -17,9 +17,16 @@ replaces=()
backup=()
options=()
#install=.install
-source=(https://bitbucket.org/av-mamzikov/stereophotoview/get/${pkgver}.zip)
+source=(https://bitbucket.org/av-mamzikov/stereophotoview/get/${pkgver}.zip opencv4.patch)
noextract=()
-md5sums=('ef2e82c432f60824c076ae296efd4ce7') #generate with 'makepkg -g'
+# updpkgsums
+md5sums=('ef2e82c432f60824c076ae296efd4ce7'
+ '541997434314a3eea89cbdda41487302')
+
+prepare() {
+ cd av-mamzikov-stereophotoview-e7c5a890cfe5
+ patch -Np1 -i "${srcdir}/opencv4.patch"
+}
build() {
cd "$srcdir"
diff --git a/opencv4.patch b/opencv4.patch
new file mode 100644
index 00000000000..8218e348918
--- /dev/null
+++ b/opencv4.patch
@@ -0,0 +1,12 @@
+diff -ura av-mamzikov-stereophotoview-e7c5a890cfe5/external_libs.pri package-new/external_libs.pri
+--- av-mamzikov-stereophotoview-e7c5a890cfe5/external_libs.pri
++++ package-new/external_libs.pri
+@@ -9,7 +9,7 @@
+ # Подключаем opencv...
+ unix:!android:!CONFIG(without_opencv) {
+ CONFIG += link_pkgconfig
+- PKGCONFIG += opencv
++ PKGCONFIG += opencv4
+ DEFINES += OPENCV
+ CONFIG(opencv_debug): DEFINES += CV_DEBUG
+ } \ No newline at end of file