author | Antonio Rojas
<arojas@archlinux.org> 2017-06-08 10:54:37 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2017-06-08 10:54:37 UTC |
parent | 742abd71eb5076c67618f8af541bb203288efb50 |
PKGBUILD | +10 | -4 |
kdenlive-gcc7.patch | +33 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 1e63338..3ed78c9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com> pkgname=kdenlive -pkgver=17.04.1 +pkgver=17.04.2 pkgrel=1 pkgdesc="A non-linear video editor for Linux using the MLT video framework" arch=(i686 x86_64) @@ -23,13 +23,19 @@ optdepends=('ffmpeg: for FFmpeg plugin' 'xine-ui: for DVD preview' 'vlc: for DVD preview' 'plasma-desktop: theme configuration') -source=("https://download.kde.org/stable/applications/${pkgver}/src/$pkgname-${pkgver}.tar.xz"{,.sig}) -sha256sums=('1b1c79d5d25f6bab52f8999572f5df5b5cbfd3297f6ca18e84af96c7bf4aed08' - 'SKIP') +source=("https://download.kde.org/stable/applications/${pkgver}/src/$pkgname-${pkgver}.tar.xz"{,.sig} + kdenlive-gcc7.patch) +sha256sums=('29ce6a4b3b86e20b8eac5332a22067dc8fbde297d6bc144f722bcbb64856fccb' + 'SKIP' + '867f3e4fe5f8d7c5ab19bb1d0af321bc9012abb7099149653ba37a49cd76784f') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid@kde.org> prepare() { mkdir -p build + + cd $pkgname-$pkgver +# Fix build with GCC 7 (rpmfusion) + patch -p1 -i ../kdenlive-gcc7.patch } build() { diff --git a/kdenlive-gcc7.patch b/kdenlive-gcc7.patch new file mode 100644 index 0000000..d91b214 --- /dev/null +++ b/kdenlive-gcc7.patch @@ -0,0 +1,33 @@ +diff --git a/src/profiles/tree/profiletreemodel.cpp b/src/profiles/tree/profiletreemodel.cpp +index 47a580703..912279494 100644 +--- a/src/profiles/tree/profiletreemodel.cpp ++++ b/src/profiles/tree/profiletreemodel.cpp +@@ -26,6 +26,7 @@ + #include <vector> + #include <QVector> + #include <array> ++#include <functional> + #include <KLocalizedString> + + +--- a/src/scopes/audioscopes/spectrogram.cpp ++++ b/src/scopes/audioscopes/spectrogram.cpp +@@ -245,7 +245,7 @@ + x = leftDist + (m_innerScopeRect.width() - 1) * ((float)hz) / m_freqMax; + + // Hide text if it would overlap with the text drawn at the mouse position +- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 20)) < (int) minDistX + 16 ++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs((int)(x - (leftDist + mouseX + 20))) < (int) minDistX + 16 + && mouseX < m_innerScopeRect.width() && mouseX >= 0; + + if (x <= rightBorder) { +@@ -273,7 +273,7 @@ + } + // Draw the line at the very right (maximum frequency) + x = leftDist + m_innerScopeRect.width() - 1; +- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x - (leftDist + mouseX + 30)) < (int) minDistX ++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs((int)(x - (leftDist + mouseX + 30))) < (int) minDistX + && mouseX < m_innerScopeRect.width() && mouseX >= 0; + davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height() + 6); + if (!hideText) { +