Subject: [bug#75220] [PATCH v4] gnu: fltk: Update to 1.3.1 and add 1.4.1 as fltk-next.

From: Andy Tai <[email-masked]>
Date: Tue, 11 Feb 2025 22:06:41 -0800

* gnu/packages/fltk.scm (fltk): Update to 1.3.11.
[source]<origin>: Switch to git reference.
(fltk-next): New variable.

Change-Id: I54833e5802d4b2088a42474d2edd17fe56bbdb68
---
 gnu/packages/fltk.scm | 30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/fltk.scm b/gnu/packages/fltk.scm
index 05d418022f..7d36f2c86a 100644
--- a/gnu/packages/fltk.scm
+++ b/gnu/packages/fltk.scm
@@ -25,6 +25,7 @@
 (define-module (gnu packages fltk)
   #:use-module ((guix licenses) #:select (lgpl2.0 lgpl2.0+))
   #:use-module (gnu packages)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages image)
   #:use-module (gnu packages xorg)
@@ -43,18 +44,20 @@ (define-module (gnu packages fltk)
 (define-public fltk
   (package
     (name "fltk")
-    (version "1.3.9")
+    (version "1.3.11")
     (source
      (origin
-      (method url-fetch)
-      (uri (string-append "https://www.fltk.org/pub/fltk/"
-                          (first (string-split version #\-))
-                          "/fltk-" version "-source.tar.gz"))
+      (method git-fetch)
+      (uri (git-reference
+              (url "https://github.com/fltk/fltk")
+              (commit (string-append "release-" version))))
       (sha256
-       (base32 "06siv517l1wfvcc1dg0h1dka5yzkh9gbmm835i1hgmjhbi2b0dnp"))))
+       (base32 "0pnifyhhvcqfjd6iaa4m14kvfyqhjjdw0aqbcizcdhhqrl6q4pjg"))))
    (build-system gnu-build-system)
    (native-inputs
-    (list pkg-config))
+    (list autoconf
+          automake
+          pkg-config))
    (inputs
     `(("libjpeg" ,libjpeg-turbo)
       ("libpng" ,libpng)
@@ -97,6 +100,19 @@ (define-public fltk
 UI builder called FLUID that can be used to create applications in minutes.")
     (license lgpl2.0))) ; plus certain additional permissions
 
+(define-public fltk-next
+  (package
+    (inherit fltk)
+    (version "1.4.1")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+              (url "https://github.com/fltk/fltk")
+              (commit (string-append "release-" version))))
+      (sha256
+       (base32 "0ii49imyw29drkhc9dvyiiybc9qy19fxc91wl6w2gmc3xsmdzd6z"))))))
+
+
 (define-public ntk
   (package
     (name "ntk")

base-commit: d59a13b6401e7494d8d5c9c9f66df3318451be79
-- 
2.34.1