Subject: [bug#66856] [PATCH v3 2/7] gnu: Add plasma-applet-advanced-radio-player.

From: Sughosha <[email-masked]>
Date: Sat, 4 Nov 2023 01:36:56 +0100

* gnu/packages/kde-xyz.scm (plasma-extension-advanced-radio-player): New variable.

Change-Id: I9c7bfd11cf4906b6096c75e0251235e6b5b5ecbb
---
 gnu/packages/kde-xyz.scm | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/kde-xyz.scm b/gnu/packages/kde-xyz.scm
index 840014de5c..9a55c7114e 100644
--- a/gnu/packages/kde-xyz.scm
+++ b/gnu/packages/kde-xyz.scm
@@ -22,7 +22,8 @@ (define-module (gnu packages kde-xyz)
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module ((guix licenses) #:prefix license:)
-  #:use-module (gnu packages gnome-xyz))
+  #:use-module (gnu packages gnome-xyz)
+  #:use-module (gnu packages qt))
 
 (define-public flat-remix-kde-theme
   (let ((commit "18ac464d5b77dd140aeb6c6b98d687c086959247")
@@ -53,3 +54,34 @@ (define-public flat-remix-kde-theme
 It is mostly flat using a colorful palette with some shadows, highlights, and
 gradients for some depth.")
     (license license:gpl3+))))
+
+(define-public plasma-applet-advanced-radio-player
+  ;; Version is not tagget, but given in package/metadata.desktop.
+  (let ((commit "894973f4d5948ce400c2a3d28def4cea3c274c47") ;version 2.4
+        (revision "0"))
+    (package
+      (name "plasma-applet-advanced-radio-player")
+      (version (git-version "2.4" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+            (url "https://invent.kde.org/saurov/arp")
+            (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "17h79bl6akyhjh53hdp7g4a7kki8v8m2zvqs1qi0isf3nlvz0dwm"))))
+      (build-system copy-build-system)
+      (arguments
+       `(#:install-plan
+         `(("package"
+            "/share/plasma/plasmoids/org.kde.plasma.advancedradio"))))
+      (propagated-inputs
+       (list qtmultimedia-5))
+      (home-page "https://invent.kde.org/saurov/arp")
+      (synopsis "Radio player extension for Plasma")
+      (description
+       "Advanced Radio Player is a radio player extension for Plasma, with
+editable list of stations.")
+    (license license:lgpl2.0+))))
-- 
2.41.0