aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorABE Shin-ichi <shin1.abe@nifty.com>2021-08-24 20:44:18 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-25 12:11:46 +0700
commitc034b0bb72ee1a1f5c657bd1f43e4408bc44575a (patch)
treed28f43d359a944e4feeb9fe8187671fa7c9d0c2f
parent54f36972487199b98c8f36fc41e80fa73872add3 (diff)
network/MEGAsync: Updated for version 4.5.3.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/MEGAsync/MEGAsync.SlackBuild7
-rw-r--r--network/MEGAsync/MEGAsync.info10
-rw-r--r--network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch24
-rw-r--r--network/MEGAsync/megasync-4.5.0.0_pdfium.patch16
4 files changed, 50 insertions, 7 deletions
diff --git a/network/MEGAsync/MEGAsync.SlackBuild b/network/MEGAsync/MEGAsync.SlackBuild
index 0c3c387ea4d3d..4d804db29e8a6 100644
--- a/network/MEGAsync/MEGAsync.SlackBuild
+++ b/network/MEGAsync/MEGAsync.SlackBuild
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=MEGAsync
-VERSION=${VERSION:-4.3.7.0}
-SDK=${SDK:-3.7.3e}
+VERSION=${VERSION:-4.5.3.0}
+SDK=${SDK:-3.8.2c}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -83,7 +83,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/megasync-4.5.0.0_ffmpeg.patch
cd src/MEGASync/mega
+patch -p1 < $CWD/megasync-4.5.0.0_pdfium.patch
+
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
diff --git a/network/MEGAsync/MEGAsync.info b/network/MEGAsync/MEGAsync.info
index 52b6dc42b5273..db02860be9190 100644
--- a/network/MEGAsync/MEGAsync.info
+++ b/network/MEGAsync/MEGAsync.info
@@ -1,10 +1,10 @@
PRGNAM="MEGAsync"
-VERSION="4.3.7.0"
+VERSION="4.5.3.0"
HOMEPAGE="https://github.com/meganz/MEGAsync/"
-DOWNLOAD="https://github.com/meganz/MEGAsync/archive/v4.3.7.0_Linux/MEGAsync-4.3.7.0_Linux.tar.gz \
- https://github.com/meganz/sdk/archive/v3.7.3e/sdk-3.7.3e.tar.gz"
-MD5SUM="051cd9c42aad7ad283221e445bf838f7 \
- 916e13eeb9e23c5542122cb1c60dc9ca"
+DOWNLOAD="https://github.com/meganz/MEGAsync/archive/v4.5.3.0_Linux/MEGAsync-4.5.3.0_Linux.tar.gz \
+ https://github.com/meganz/sdk/archive/v3.8.2c/sdk-3.8.2c.tar.gz"
+MD5SUM="be0f1e070b6990c19d766990758ef997 \
+ ded79c86d1ddbe2572f0562fa1dc15fc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="FreeImage libmediainfo"
diff --git a/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch b/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch
new file mode 100644
index 0000000000000..a30d4a1eff769
--- /dev/null
+++ b/network/MEGAsync/megasync-4.5.0.0_ffmpeg.patch
@@ -0,0 +1,24 @@
+diff -Naur a/src/MEGASync/mega/src/gfx/freeimage.cpp b/src/MEGASync/mega/src/gfx/freeimage.cpp
+--- a/src/MEGASync/mega/src/gfx/freeimage.cpp 2021-05-23 02:28:08.694081111 +0100
++++ b/src/MEGASync/mega/src/gfx/freeimage.cpp 2021-05-23 02:29:56.189964969 +0100
+@@ -188,7 +188,7 @@
+
+ // Force seeking to key frames
+ formatContext->seek2any = false;
+- videoStream->skip_to_keyframe = true;
++ //videoStream->skip_to_keyframe = true;
+ if (decoder->capabilities & CAP_TRUNCATED)
+ {
+ codecContext.flags |= CAP_TRUNCATED;
+diff -Naur a/src/MEGASync/mega/src/gfx/qt.cpp b/src/MEGASync/mega/src/gfx/qt.cpp
+--- a/src/MEGASync/mega/src/gfx/qt.cpp 2021-05-23 02:28:08.694081111 +0100
++++ b/src/MEGASync/mega/src/gfx/qt.cpp 2021-05-23 02:29:36.172545153 +0100
+@@ -1209,7 +1209,7 @@
+
+ // Force seeking to key frames
+ formatContext->seek2any = false;
+- videoStream->skip_to_keyframe = true;
++ //videoStream->skip_to_keyframe = true;
+ if (decoder->capabilities & CAP_TRUNCATED)
+ {
+ codecContext.flags |= CAP_TRUNCATED;
diff --git a/network/MEGAsync/megasync-4.5.0.0_pdfium.patch b/network/MEGAsync/megasync-4.5.0.0_pdfium.patch
new file mode 100644
index 0000000000000..141ab30576c73
--- /dev/null
+++ b/network/MEGAsync/megasync-4.5.0.0_pdfium.patch
@@ -0,0 +1,16 @@
+diff --git a/bindings/qt/sdk.pri b/bindings/qt/sdk.pri
+index 83ddc2e2f..46aa06d33 100644
+--- a/bindings/qt/sdk.pri
++++ b/bindings/qt/sdk.pri
+@@ -255,6 +255,11 @@ CONFIG(USE_PDFIUM) {
+ DEFINES += HAVE_PDFIUM
+ LIBS += -lpdfium
+ }
++ else:exists(/usr/include/pdfium/fpdfview.h) {
++ DEFINES += HAVE_PDFIUM
++ INCLUDEPATH += /usr/include/pdfium
++ LIBS += -lpdfium
++ }
+ }
+ else {#win/mac
+ DEFINES += HAVE_PDFIUM