Subject: [bug#75146] [PATCH v4 42/68] gnu: xfburn: Switch to git source.

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

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

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

Change-Id: I861899747b17427b532923a769240ce49979f16c
---
 gnu/packages/xfce.scm | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index d064299812..0a9539a71d 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -1513,17 +1513,21 @@ (define-public xfburn
   (package
     (name "xfburn")
     (version "0.7.2")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/apps/xfburn/"
-                                  (version-major+minor version) "/"
-                                  "xfburn-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "09crg8vd6vs671lbbhy1ch9hf3d3xvfynh6vj5zlhpikyzch3fy2"))))
+    (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 "18i25n81qzgb77w5vc6n4hwnw893204az8c1bg5k9229sz28r7vq"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "--enable-maintainer-mode"))) ;for xfburn.1
     (native-inputs
-     (list intltool pkg-config))
+     (list docbook-xsl libxslt xfce4-dev-tools))
     (inputs
      (list exo
            gstreamer
@@ -1535,7 +1539,7 @@ (define-public xfburn
            libburn
            libisofs
            libxfce4ui))
-    (home-page "https://goodies.xfce.org/projects/applications/xfburn")
+    (home-page "https://docs.xfce.org/apps/xfburn/")
     (synopsis "GTK+ based CD, DVD and Blu-ray burning application")
     (description
      "Xfburn is a simple CD, DVD, and Blu-ray burning tool based on
-- 
2.46.0