Subject: [PATCH v2 3/6] gnu: kiwix-lib: Update to 14.0.0 and rename with libkiwix.

From: Sughosha <[email-masked]>
Date: Sun, 23 Feb 2025 18:12:55 +0530

* gnu/packages/web.scm (kiwix-lib): Update to 14.0.0, rename with libkiwix and
deprecate kiwix-lib.
[home-page]: Update.
[source]: Switch to url-fetch.
(kiwix-desktop,kiwix-tools)[inputs]: Replace kiwix-lib with libkiwix.

Change-Id: Icaf0d28168078e92f7cfcd54ba0f4e10fb3c477f
---
 gnu/packages/web.scm | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 767f814c2d..14914eaa3e 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -90,6 +90,7 @@ (define-module (gnu packages web)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix deprecation)
   #:use-module (guix gexp)
   #:use-module (guix cvs-download)
   #:use-module (guix hg-download)
@@ -9419,20 +9420,20 @@ (define-public libzim
 for ZIM files.")
     (license license:gpl2)))
 
-(define-public kiwix-lib
+(define-public libkiwix
   (package
-    (name "kiwix-lib")
-    (version "13.0.0")
-    (home-page "https://github.com/kiwix/kiwix-lib/")
+    (name "libkiwix")
+    (version "14.0.0")
+    (home-page "https://github.com/kiwix/libkiwix")
     (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url home-page)
-                    (commit version)))
+              (method url-fetch)
+              (uri (string-append
+                    "https://download.kiwix.org/release/libkiwix/libkiwix-"
+                    version
+                    ".tar.xz"))
               (sha256
                (base32
-                "0mvlppbj0mqn4ka3cfaaj1pvn062cxbgz01c0nq04x0mzq1xwh5w"))
-              (file-name (git-file-name name version))))
+                "1p0hj94rz22gvhan9y3sg40sz2lw4fsl2m3jjpqz65zxgv9n9p7v"))))
     (build-system meson-build-system)
     (arguments
      `(#:phases
@@ -9464,6 +9465,8 @@ (define-public kiwix-lib
 It contains the code shared by all Kiwix ports.")
     (license license:gpl3)))
 
+(define-deprecated/public-alias kiwix-lib libkiwix)
+
 (define-public kiwix-desktop
   (package
     (name "kiwix-desktop")
@@ -9500,7 +9503,7 @@ (define-public kiwix-desktop
      (list bash-minimal
            curl
            icu4c
-           kiwix-lib
+           libkiwix
            libmicrohttpd
            libzim
            pugixml
@@ -9536,7 +9539,7 @@ (define-public kiwix-tools
     (inputs
      (list curl
            icu4c
-           kiwix-lib
+           libkiwix
            libmicrohttpd
            libzim
            pugixml
-- 
2.47.1