Subject: [bug#76570] [PATCH v3 1/6] gnu: Add libudfread.

From: André Batista <[email-masked]>
Date: Sat, 8 Mar 2025 10:08:55 -0300

* gnu/packages/cdrom.scm (libudfread): New variable.

Change-Id: Ifcd7d28474ec4b8061b2914d26d3f20f81f960ce
---
 gnu/packages/cdrom.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index 98c9127803..574f4e26d3 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2024 Julian Flake <[email-masked]>
 ;;; Copyright © 2025 Yovan Naumovski <[email-masked]>
+;;; Copyright © 2025 André Batista <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -970,6 +971,30 @@ (define-public libisofs
 Supported extensions to ISO 9660 are Rock Ridge, Joliet, AAIP, zisofs.")
     (license gpl2+)))
 
+(define-public libudfread
+  (package
+    (name "libudfread")
+    (version "1.1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://download.videolan.org/pub/videolan/libudfread/"
+                    name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "05c943ymw94nzjxf7v102916frqk7icgw4gb244wx23jn8cnz56m"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list automake autoconf libtool pkg-config))
+    (home-page "https://code.videolan.org/videolan/libudfread")
+    (synopsis "C library to read UDF file systems")
+    (description "@code{libudfread} is a C library for reading
+@acronym{UDF, Universal Disk Format} file systems.  @acronym{UDF, Universal
+Disk Format} is a file system mostly used for DVDs and other optical media.
+It supports read-only media (DVD/CD-R) and rewritable media that wears out
+(DVD/CD-RW).")
+    (license lgpl2.1+)))
+
 (define-public cdrkit-libre
   (package
     (name "cdrkit-libre")

base-commit: 535efb3c9add7e32530aa0dced40b18b12b8ed95
-- 
2.48.1