git » plasma-wayland-protocols.git » commit 949926f

Fix crash on plasma-wayland

author Antonio Rojas
2020-07-29 09:50:33 UTC
committer Antonio Rojas
2020-07-29 09:50:33 UTC
parent 4f79f1a42fea949be2e5d296d0fca1795ac885f5

Fix crash on plasma-wayland

PKGBUILD +9 -3

diff --git a/PKGBUILD b/PKGBUILD
index 2a38de5..1a17fb7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,18 +2,24 @@
 
 pkgname=plasma-wayland-protocols
 pkgver=1.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Plasma Specific Protocols for Wayland"
 arch=(any)
 url="https://kde.org/plasma-desktop"
 license=(LGPL)
 depends=()
 makedepends=(qt5-base extra-cmake-modules)
-source=("https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig})
+source=("https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig}
+         kdebug-424780.patch::"https://invent.kde.org/libraries/plasma-wayland-protocols/-/commit/404ae95b.patch")
 sha256sums=('d7bcf780b764f013613870ff2366486f052827857ca0bb79981c97b436601d31'
-            'SKIP')
+            'SKIP'
+            '7ba2947aa7398ff09defd4f1bdc84675788a64d6a8e93b4d0458e7a7c57a3271')
 validpgpkeys=(CA1B4E348D22755A67EF4E1A6A4F2C4CDC8BC77F) # Aleix Pol Gonzalez <aleixpol@kde.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 -i ../kdebug-424780.patch # Fix plasma-wayland crash
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver
   cmake --build build