Subject: [PATCH v4 19/68] gnu: xfce4-appfinder: Switch to git source.

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

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

* gnu/packages/xfce.scm (xfce4-appfinder)[source]: Switch to git-fetch.
[native-inputs]: Add xfce4-dev-tools.
[arguments]: Add "--enable-maintainer-mode" to configure-flags.
[home-page]: Set to docs.xfce.org.

Change-Id: I5c0760162e1f1c566f1b13571035f7fb9708f89b
---
 gnu/packages/xfce.scm | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index e959e0c31e..8fa5f3a0a3 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -656,21 +656,24 @@ (define-public xfce4-appfinder
   (package
     (name "xfce4-appfinder")
     (version "4.20.0")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/xfce/"
-                                  name "/"
-                                  (version-major+minor version)
-                                  "/" name "-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "013kkspy9gma5yzzwvwqm9452i6z67zc4f2lnifjhgn8gpvq5jl2"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://gitlab.xfce.org/xfce/" name))
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1irqbabdgj5ybns55g92548jcr0i1k4q0c7s8jn17r7g8ygd12qy"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "--enable-maintainer-mode"))) ;for appfinder-preferences-ui.h
     (native-inputs
-     (list pkg-config intltool))
+     (list xfce4-dev-tools))
     (inputs
      (list garcon gtk+ libxfce4ui))
-    (home-page "https://www.xfce.org/")
+    (home-page "https://docs.xfce.org/xfce/xfce4-appfinder/")
     (synopsis "Xfce application finder")
     (description
      "Application finder for Xfce, it will show the applications installed on
-- 
2.46.0