Subject: [PATCH v2 5/5] gnu: Add libreoffice-lts.

From: Nicolas Graves <[email-masked]>
Date: Wed, 25 Sep 2024 09:40:39 +0200

* gnu/packages/libreoffice.scm (libreoffice-lts): New variable.

Change-Id: Ic4f9fa958f52306d5e431684055f8d37e7b2003c
---
 gnu/packages/libreoffice.scm | 30 ++++++++++++++++++++++--------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 2d038cdf0d..4f0d9cbad1 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -890,6 +890,15 @@ (define dtoa
     (sha256
      (base32 "1d0iwy0q5sjznv23d3nbwmy0r7m1mdzlnv5pc4izddkx9xld10h0"))))
 
+(define (libreoffice-url version)
+  (list
+   (string-append
+    "https://download.documentfoundation.org/libreoffice/src/"
+    (version-prefix version 3) "/libreoffice-" version ".tar.xz")
+   (string-append
+    "https://downloadarchive.documentfoundation.org/libreoffice/old/"
+    version "/src/libreoffice-" version ".tar.xz")))
+
 (define-public libreoffice
   (package
     (name "libreoffice")
@@ -897,14 +906,7 @@ (define-public libreoffice
     (source
      (origin
        (method url-fetch)
-       (uri
-        (list
-         (string-append
-          "https://download.documentfoundation.org/libreoffice/src/"
-          (version-prefix version 3) "/libreoffice-" version ".tar.xz")
-         (string-append
-          "https://downloadarchive.documentfoundation.org/libreoffice/old/"
-          version "/src/libreoffice-" version ".tar.xz")))
+       (uri (libreoffice-url version))
        (sha256
         (base32 "1rqii01i0295ch2xc9mddqpvlpjapk3m6nra4mhxfc38da1qci48"))))
     (build-system glib-or-gtk-build-system)
@@ -1197,3 +1199,15 @@ (define (install-python-script name)
      '((release-monitoring-url
         . "https://www.libreoffice.org/download/download-libreoffice/")))
     (license license:mpl2.0)))
+
+(define-public libreoffice-lts
+  (package
+    (inherit libreoffice)
+    (name "libreoffice")
+    (version "24.2.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (libreoffice-url version))
+       (sha256
+        (base32 "1cqxw745kzm81b2nvfpl5n2sq1k9y25y596wvjsnaq394bq4vspn"))))))
-- 
2.46.0