Subject: [PATCH v2] gnu: libserialport: Update to 0.1.2.

From: Cayetano Santos <[email-masked]>
Date: Sun, 6 Apr 2025 09:46:49 +0200

* gnu/packages/electronics.scm (libserialport): Update to 0.1.2.

[source]: Switch to git-fetch.
[native-inputs]: Add autoconf, automake, libtool.

Change-Id: I1666f0a5f643c1fa8ea246f42503732ef5f93331
---
 gnu/packages/electronics.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index ce35b19432..3cff2a8e7b 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -69,16 +69,18 @@ (define-module (gnu packages electronics)
 (define-public libserialport
   (package
     (name "libserialport")
-    (version "0.1.1")
+    (version "0.1.2")
     (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "http://sigrok.org/download/source/libserialport/libserialport-"
-                    version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "git://sigrok.org/libserialport")
+                    (commit (string-append name "-" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja"))))
+                "0dn10gmm3rwdsiw1psaczb9m52x6cfkfrbywm4f5y8fsmghh7dsy"))))
     (build-system gnu-build-system)
+    (native-inputs (list autoconf automake libtool))
     (home-page "https://sigrok.org/wiki/Libserialport")
     (synopsis "Library for using serial ports")
     (description "Libserialport is a minimal shared library written in C that is intended

base-commit: 80826c6e038997dc47eb455888f0feaa38c08bf5
-- 
2.49.0