gnu: Add pragha.

* gnu/packages/music.scm (pragha): New variable.
This commit is contained in:
Eric Bavier 2019-10-07 23:29:07 -05:00
parent 55af645605
commit 0163b9002a
No known key found for this signature in database
GPG key ID: FD73CAC719D32566

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2014, 2019 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
;;; Copyright © 2016 Al McElrath <hello@yrns.org>
@ -4628,3 +4628,52 @@ (define-public mloop
@item Adjust tempo; Playback speed of loops can be adjusted on the fly.
@end itemize\n")
(license license:gpl2))))
(define-public pragha
(package
(name "pragha")
(version "1.3.4")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/pragha-music-player/pragha/"
"releases/download/v" version "/pragha-" version
".tar.bz2"))
(sha256
(base32
"19kbhq99bkimx3aqrdzln0vlr4slkpx6kq66j731jvqyq76nlkp5"))))
(build-system glib-or-gtk-build-system)
(native-inputs
`(("intltool" ,intltool)
("pkg-config" ,pkg-config)))
(inputs
`(("glib" ,glib)
("grilo" ,grilo)
("gstreamer" ,gstreamer)
("gst-plugins-base" ,gst-plugins-base)
("gst-plugins-good" ,gst-plugins-good)
("gtk+" ,gtk+)
("libcddb" ,libcddb)
("libcdio" ,libcdio)
("libcdio-paranoia" ,libcdio-paranoia)
("libgudev" ,libgudev)
("libnotify" ,libnotify)
("libpeas" ,libpeas)
("libsoup" ,libsoup)
("sqlite" ,sqlite)
("taglib" ,taglib)))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
(wrap-program (string-append out "/bin/pragha")
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path)))
#t))))))
(home-page "https://pragha-music-player.github.io")
(synopsis "Music player")
(description "Pragha is a lightweight music player based on Gtk and
sqlite. It is constructed to be fast, light, and simultaneously tries to be
complete without obstructing your daily work.")
(license license:gpl3+)))