From 4b451813f7c5677086772e29a66a8265ec0ca2c7 Mon Sep 17 00:00:00 2001 From: Feng Shu Date: Sat, 26 Mar 2022 07:01:25 +0800 Subject: [PATCH] gnu: Add parole. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/xfce.scm (parole): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/xfce.scm | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm index bf668fc9cd..44b6c34b29 100644 --- a/gnu/packages/xfce.scm +++ b/gnu/packages/xfce.scm @@ -36,6 +36,7 @@ (define-module (gnu packages xfce) #:use-module (gnu artwork) #:use-module (gnu packages) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages calendar) #:use-module (gnu packages cdrom) #:use-module (gnu packages fonts) @@ -904,6 +905,52 @@ (define-public gigolo local and remote file systems and manage bookmarks of such.") (license gpl2))) ;version 2 only +(define-public parole + (package + (name "parole") + (version "4.16.0") + (source (origin + (method url-fetch) + (uri (string-append "https://archive.xfce.org/src/apps/" + name "/" (version-major+minor version) "/" + name "-" version ".tar.bz2")) + (sha256 + (base32 + "1rx7apylqb7mf1dl0sswj1630fca3ddk4x1gcdmlv5ykrkc5lc0d")))) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags + #~(list (string-append "CPPFLAGS=-I" + #$(this-package-input "gst-plugins-base") + "/include/gstreamer-1.0")) + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-parole + (lambda* (#:key inputs #:allow-other-keys) + (let ((gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append #$output "/bin/parole") + #:sh (search-input-file inputs "bin/bash") + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))))) + (native-inputs + (list pkg-config intltool gobject-introspection)) + (inputs + (list bash-minimal ;for 'wrap-program' + dbus-glib + (list glib "bin") + gstreamer + gst-plugins-base + gst-plugins-good + libnotify + libxfce4ui + libxfce4util)) + (home-page "https://www.xfce.org/") + (synopsis "Media player based on the GStreamer framework") + (description "Parole is a modern simple media player based on the +GStreamer framework and written to fit well in the Xfce desktop. Parole +features playback of local media files, DVD/CD and live streams.") + (license gpl2))) ;version 2 only + (define-public xfce4-terminal (package (name "xfce4-terminal")