Subject: [PATCH v2 1/1] gnu: Add cyanrip.

From: mio <[email-masked]>
Date: Sun, 28 Jul 2024 22:10:45 +1000

From: Simon Streit <[email-masked]>

* gnu/packages/audio.scm (cyanrip): New variable.

Signed-off-by: mio <[email-masked]>
Change-Id: If7059b47e5a9f968570af8617f28bbe9a8b30b93
---
 gnu/packages/audio.scm | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index b728220e1f..0aea78b117 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -38,7 +38,7 @@
 ;;; Copyright © 2021 Aleksandr Vityazev <[email-masked]>
 ;;; Copyright © 2022 Arjan Adriaanse <[email-masked]>
 ;;; Copyright © 2022, 2023 Juliana Sims <[email-masked]>
-;;; Copyright © 2022 Simon Streit <[email-masked]>
+;;; Copyright © 2022, 2023 Simon Streit <[email-masked]>
 ;;; Copyright © 2022 Andy Tai <[email-masked]>
 ;;; Copyright © 2023 Sergiu Ivanov <[email-masked]>
 ;;; Copyright © 2023 David Thompson <[email-masked]>
@@ -47,6 +47,7 @@
 ;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;; Copyright © 2023 Parnikkapore <[email-masked]>
 ;;; Copyright © 2024 hapster <[email-masked]>
+;;; Copyright © 2024 mio <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -74,6 +75,7 @@ (define-module (gnu packages audio)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages build-tools)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages cdrom)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages curl)
@@ -137,6 +139,7 @@ (define-module (gnu packages audio)
   #:use-module (gnu packages telephony)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages valgrind)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
   #:use-module (gnu packages vim) ;xxd
   #:use-module (gnu packages web)
@@ -6537,6 +6540,38 @@ (define-public cubeb
       (home-page "https://github.com/mozilla/cubeb")
       (license license:isc))))
 
+(define-public cyanrip
+  (package
+    (name "cyanrip")
+    (version "0.9.3.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/cyanreg/cyanrip")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "13v6gjbxw6ybviq802wmgwlwy846ma4yw94aay0h698qhjqwf0qq"))))
+    (build-system meson-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list curl
+                  ffmpeg
+                  libcdio-paranoia
+                  libmusicbrainz
+                  libxml2
+                  neon))
+    (synopsis "Command line CD ripper and encoder")
+    (description
+     "cyanrip is a command line tool for ripping CDs.  It uses
+MusicBrainz to name and tag each track, and to download and embed cover art.
+cyanrip supports encoding tracks to multiple formats in parallel, and can
+save files in FLAC, Opus, MP3, TTA (True Audio), WavPac, ALAC, Vorbis, and
+AAC formats.  Checksums for ripped tracks are automatically verified using
+the Exact Audio Copy CRC32 and AccurateRip V1 and V2 databases.")
+    (home-page "https://github.com/cyanreg/cyanrip")
+    (license license:lgpl2.1+)))
+
 (define-public easyeffects
   (package
     (name "easyeffects")
-- 
2.39.2