Subject: [bug#72360] [PATCH] gnu: kvantum: Update to 1.1.2.

From: Zheng Junjie <[email-masked]>
Date: Tue, 30 Jul 2024 13:13:19 +0800

* gnu/packages/qt.scm (kvantum): Update to 1.1.2.
[source]: Switch to git-fetch.
[arguments]: Set #:qtbase to qtbase.
<#:phases>: Adjust patch-style-dir phase.
[inputs]: Remove libx11, libxext, qtbase-5, qtsvg-5, and qtx11extras; add qtsvg.
[native-inputs]: Remove qttools-5; add qttools.

Change-Id: I1dbfe5587467df747f91eccbc2b3ce3f3ed21e31
---
 gnu/packages/qt.scm | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index c150dca78b..a91bebf358 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -313,19 +313,21 @@ (define-public kddockwidgets
 (define-public kvantum
   (package
     (name "kvantum")
-    (version "1.0.7")
+    (version "1.1.2")
     (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "https://github.com/tsujan/Kvantum/releases/download/V"
-                    version "/Kvantum-" version ".tar.xz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/tsujan/Kvantum")
+                    (commit (string-append "V" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "0zwxswbgd3wc7al3fhrl5qc0fmmb6mkygywjh1spbqpl7s8jw5s3"))))
+                "1prlv2fqwbxj9fqs4xf925qh9m9ginh0mcc618yg3h23vxq9g9ym"))))
     (build-system qt-build-system)
     (arguments
      (list
       #:tests? #f                       ;no tests
+      #:qtbase qtbase
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'chdir
@@ -336,15 +338,11 @@ (define-public kvantum
               (substitute* "style/CMakeLists.txt"
                 (("\\$\\{KVANTUM_STYLE_DIR\\}")
                  (string-append #$output
-                                "/lib/qt5/plugins/styles"))))))))
-    (native-inputs (list qttools-5))
+                                "/lib/qt6/plugins/styles"))))))))
+    (native-inputs (list qttools))
     (inputs (list
              kwindowsystem
-             libx11
-             libxext
-             qtbase-5
-             qtsvg-5
-             qtx11extras))
+             qtsvg))
     (synopsis "SVG-based theme engine for Qt")
     (description
      "Kvantum is an SVG-based theme engine for Qt,

base-commit: fdc6274de5b1d617fcabb3f3af9d2c0dd2a6520d
prerequisite-patch-id: 9429d31c7fc951f1c90d8df0d4c1d5655f38287f
prerequisite-patch-id: 4206102002e22b11bda8bfb3e70e7c2d46f38cda
-- 
2.45.2