Subject: [PATCH kde-team 32/63] gnu: Add kcrash-6.

From: Zheng Junjie <[email-masked]>
Date: Mon, 15 Apr 2024 20:47:09 +0800

* gnu/packages/kde-frameworks.scm (kcrash-6): New variable.
(kcrash): Inherit above.

Change-Id: I0cdf1ff49e88bb0a5961fce56897e07096bda7eb
---
 gnu/packages/kde-frameworks.scm | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 5c43df7e89..2fa6084bec 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2353,10 +2353,10 @@ (define-public kcontacts
               (system "Xvfb +extension GLX :1 -screen 0 640x480x24 &")
               (setenv "DISPLAY" ":1"))))))))
 
-(define-public kcrash
+(define-public kcrash-6
   (package
     (name "kcrash")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -2365,18 +2365,37 @@ (define-public kcrash
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "1avi4yd3kpjqxrvci1nicxbh9mjafj1w2vgfmqanq66b76s4kxj1"))))
+                "1vbrcj0gh3536mwcn39jf496jh5x3vapkgg6grxn8bvwfvlq4zvj"))))
     (build-system qt-build-system)
-    (native-inputs
-     (list extra-cmake-modules))
-    (inputs
-     (list kcoreaddons kwindowsystem qtbase-5 qtx11extras))
+    (native-inputs (list extra-cmake-modules))
+    (inputs (list kcoreaddons-6 kwindowsystem-6))
+    (arguments (list #:qtbase qtbase))
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "Graceful handling of application crashes")
     (description "KCrash provides support for intercepting and handling
 application crashes.")
     (license license:lgpl2.1+)))
 
+(define-public kcrash
+  (package
+    (inherit kcrash-6)
+    (name "kcrash")
+    (version "5.114.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1avi4yd3kpjqxrvci1nicxbh9mjafj1w2vgfmqanq66b76s4kxj1"))))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list kcoreaddons kwindowsystem qtx11extras))
+    (arguments '())))
+
 (define-public kdoctools-6
   (package
     (name "kdoctools")
-- 
2.41.0