git » kio.git » commit 1fb4ce9

upgpkg: 5.107.0-2: Fix crash when accessing external devices

author Antonio Rojas
2023-06-15 09:31:38 UTC
committer Antonio Rojas
2023-06-15 09:31:38 UTC
parent c6cf0c5ad14d0369397540bbe45c07a3ef3dc80d

upgpkg: 5.107.0-2: Fix crash when accessing external devices

PKGBUILD +9 -3

diff --git a/PKGBUILD b/PKGBUILD
index 824ea48..35cee9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=kio
 pkgver=5.107.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Resource and network access abstraction'
 arch=(x86_64)
 url='https://community.kde.org/Frameworks'
@@ -14,11 +14,17 @@ makedepends=(extra-cmake-modules kdoctools doxygen qt5-tools qt5-doc)
 optdepends=('kio-extras: extra protocols support (sftp, fish and more)' 'kdoctools: for the help kioslave'
             'kio-fuse: to mount remote filesystems via FUSE')
 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/kio/-/commit/daa0b06a.patch)
 sha256sums=('456a1856830c21e9a61181c22c0e14510ad6a4498da0684afc05761142ac48ae'
-            'SKIP')
+            'SKIP'
+            'd13e1d78307e45832c348711178251e5214b4316b542978755a76e624af04e94')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < daa0b06a.patch # Fix crash when accessing external devices
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DCMAKE_INSTALL_LIBEXECDIR=lib \