Subject: [PATCH v4 37/68] gnu: ristretto: Update to 0.13.3.

From: [email-masked]
Date: Tue, 31 Dec 2024 14:44:07 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/xfce.scm (ristretto): Update to 0.13.3.
[source]: Switch to git-fetch.
[arguments]: Add "--enable-maintainer-mode" to configure-flags.
[native-inputs]: Add xfce4-dev-tools.

Change-Id: Ia1bc97b0fbecc647e6ccb3a3ddf4ce4d1223bf99
---
 gnu/packages/xfce.scm | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index a35ba85661..30c77d664f 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -1391,20 +1391,22 @@ (define-public xfce4-power-manager
 (define-public ristretto
   (package
     (name "ristretto")
-    (version "0.13.2")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/apps/ristretto/"
-                                  (version-major+minor version) "/"
-                                  "ristretto-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "1nbxfm6ljcw45vn8hhjxwcv3k387hdah4jnn07n9w08n63g5x7vp"))))
+    (version "0.13.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://gitlab.xfce.org/apps/" name))
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0bbcq5spqirh21p0s7vy9na58inz47nsj59asdka35qnvr20g4vh"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "--enable-maintainer-mode"))) ;for main_window_ui.h, etc.
     (native-inputs
-     (list intltool desktop-file-utils
-           `(,glib "bin") ; for gdbus-codegen
-           pkg-config))
+     (list xfce4-dev-tools))
     (inputs
      (list gtk+ libexif libxfce4ui tumbler))
     (home-page "https://docs.xfce.org/apps/ristretto/start")
-- 
2.46.0