summaryrefslogtreecommitdiff
path: root/user/spectacle
diff options
context:
space:
mode:
Diffstat (limited to 'user/spectacle')
-rw-r--r--user/spectacle/APKBUILD9
-rw-r--r--user/spectacle/qt5.9.patch23
2 files changed, 29 insertions, 3 deletions
diff --git a/user/spectacle/APKBUILD b/user/spectacle/APKBUILD
index d22aff8cb..e00412349 100644
--- a/user/spectacle/APKBUILD
+++ b/user/spectacle/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=spectacle
-pkgver=18.12.3
+pkgver=19.04.0
pkgrel=0
pkgdesc="Application for capturing desktop screenshots"
url="https://www.kde.org/applications/graphics/spectacle/"
@@ -14,7 +14,9 @@ makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
kdoctools-dev kdeclarative-dev xcb-util-image-dev xcb-util-cursor-dev
libxcb-dev xcb-util-renderutil-dev knewstuff-dev libkipi-dev"
subpackages="$pkgname-doc $pkgname-lang"
-source="https://download.kde.org/stable/applications/$pkgver/src/spectacle-$pkgver.tar.xz"
+source="https://download.kde.org/stable/applications/$pkgver/src/spectacle-$pkgver.tar.xz
+ qt5.9.patch
+ "
build() {
cd "$builddir"
@@ -42,4 +44,5 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="d239106f0d115e98ec0173862e6dee1b6fdab5846e65c47a4bbaa161cb2695503a58bdb369feb707b96121a0d1bb9acddafc5cfa748e3113bbd47d7da49ed50f spectacle-18.12.3.tar.xz"
+sha512sums="c855fcd3cef0846fc11c8f64a2d975dbc8a93a118eb16e17cbfa5ee322ea22104a22652db3547fc53d02061371516fa0caf87557fee4975ac6c08de12db6e1cd spectacle-19.04.0.tar.xz
+781e1611026a45232fa117b90a1520bed380e512ae2e0690785a960f897342284ce0c553d8fb22caf10fd34c3823ee7dacb770815c871808345c1bb05126b74f qt5.9.patch"
diff --git a/user/spectacle/qt5.9.patch b/user/spectacle/qt5.9.patch
new file mode 100644
index 000000000..aa830f86b
--- /dev/null
+++ b/user/spectacle/qt5.9.patch
@@ -0,0 +1,23 @@
+--- spectacle-19.04.0/CMakeLists.txt.old 2019-04-12 00:06:23.000000000 +0000
++++ spectacle-19.04.0/CMakeLists.txt 2019-04-18 22:57:10.598054362 +0000
+@@ -11,7 +11,7 @@
+ # Spectacle project
+ project(Spectacle VERSION ${SPECTACLE_VERSION})
+
+-set(QT_MIN_VERSION "5.10.0")
++set(QT_MIN_VERSION "5.9.0")
+ set(KF5_MIN_VERSION "5.53.0")
+ set(PLASMA_MIN_VERSION "5.12.0")
+
+--- spectacle-19.04.0/src/SpectacleCore.cpp.old 2019-04-11 07:37:14.000000000 +0000
++++ spectacle-19.04.0/src/SpectacleCore.cpp 2019-04-18 22:57:46.694193923 +0000
+@@ -165,8 +165,7 @@
+ break;
+ case Actions::StartNewInstance:
+ QProcess newInstance;
+- newInstance.setProgram(QStringLiteral("spectacle"));
+- newInstance.startDetached();
++ newInstance.startDetached(QStringLiteral("spectacle"));
+ break;
+ }
+ }