git » kio.git » commit f307a30

Don't lock files on external drives

author Antonio Rojas
2021-03-23 10:17:28 UTC
committer Antonio Rojas
2021-03-23 10:17:28 UTC
parent 6118781eeb396b7b8c9c9d750a820a740ed401eb

Don't lock files on external drives

PKGBUILD +9 -3

diff --git a/PKGBUILD b/PKGBUILD
index 12c693d..2d74a89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=kio
 pkgver=5.80.1
-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}
+         kdebug-434455.patch::"https://invent.kde.org/frameworks/kio/commit/05e10906.patch")
 sha256sums=('d971ce61a022f9e4d2d6be9c66917be271d0fb212795a151150e208e64cd5a28'
-            'SKIP')
+            'SKIP'
+            '993b0ef360e25eff13d1741988dfac8616738fa40229fe61f54d82215209f496')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 -i ../kdebug-434455.patch # Don't lock files on external drives
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DCMAKE_INSTALL_LIBEXECDIR=lib \