Subject: [bug#70207] [PATCH] gnu: Add qmmp.

From: Timotej Lazar <[email-masked]>
Date: Fri, 5 Apr 2024 04:49:19 +0200

* gnu/packages/music.scm (qmmp): New variable.

Change-Id: Id5548eaeb73904120473397cac74ef7a5f10ecec
---
 gnu/packages/music.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 34b37ca510..98f2ce06ca 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -190,6 +190,7 @@ (define-module (gnu packages music)
   #:use-module (gnu packages terminals)
   #:use-module (gnu packages tex)
   #:use-module (gnu packages texinfo)
+  #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
@@ -598,6 +599,64 @@ (define-public ctrlr
                      license:gpl3       ;JUCE
                      license:bsd-3)))))
 
+(define-public qmmp
+  (package
+    (name "qmmp")
+    (version "2.1.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://qmmp.ylsoftware.com/files/"
+                           (version-major+minor version) "/"
+                           "qmmp-" version ".tar.bz2"))
+       (sha256
+        (base32 "1jpflf17198ascaqmxla6ajb69bnj8zzngk32vdyyw5443kshylj"))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:tests? #f)) ; there are no tests
+    (inputs
+     ;; Missing optional inputs:
+     ;; libsidplay2 ; input plugin
+     ;; projectm ; visualization plugin
+     (list alsa-lib
+           curl
+           enca
+           faad2
+           ffmpeg
+           flac
+           jack-2
+           libarchive
+           libbs2b
+           libcddb
+           libcdio-paranoia
+           libgme
+           libmad
+           libshout
+           libsndfile
+           libvorbis
+           libxmp
+           opusfile
+           opus
+           pipewire
+           pulseaudio
+           qtmultimedia
+           qttools
+           soxr
+           taglib
+           wavpack
+           wildmidi))
+    (native-inputs
+     (list pkg-config))
+    (home-page "https://qmmp.ylsoftware.com")
+    (synopsis "Qt-based music player")
+    (description "Lightweight music player with support for most common audio
+formats, and plugins for various additional features such as visualization,
+effects and online service integration.  In addition to a Qt-based interface
+it supports Winamp/XMMS skins.")
+    (license (list license:gpl2+ ; code
+                   license:cc-by-sa4.0)))) ; src/plugins/Ui/skinned/glare
+
 (define-public strawberry
   (package
     (name "strawberry")

base-commit: ade6845da6cec99f3bca46faac9b2bad6877817e
-- 
2.41.0