git » knewstuff.git » commit ebf3838

Backport crash fix

author Antonio Rojas
2021-09-27 18:56:45 UTC
committer Antonio Rojas
2021-09-27 18:56:45 UTC
parent 0840e01875d1830c2b8c2bb0b6ad5c6a4b01ca94

Backport crash fix

PKGBUILD +9 -3

diff --git a/PKGBUILD b/PKGBUILD
index 247fd47..a0c9ca7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=knewstuff
 pkgver=5.86.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Support for downloading application assets from the network'
 arch=(x86_64)
 url='https://community.kde.org/Frameworks'
@@ -13,11 +13,17 @@ depends=(kio kpackage attica syndication)
 makedepends=(extra-cmake-modules doxygen qt5-tools qt5-doc qt5-declarative)
 optdepends=('kirigami2: QML components')
 groups=(kf5)
-source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig}
+        https://invent.kde.org/frameworks/knewstuff/-/commit/d09ba191.patch)
 sha256sums=('26f8b88add9050201e7871349adb3996d75d1ab047aa1a24279743e1425b75b0'
-            'SKIP')
+            'SKIP'
+            '23541c4a71f4d17d530fac13cb01b67d3783380bbebfa5e5decf62383ef0b44d')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < d09ba191.patch # Fix crashes
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DBUILD_TESTING=OFF \