(address . guix-patches@gnu.org)
From 741284b1619490859910fb402802ab10b31f0fd2 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Wed, 1 Nov 2017 09:39:05 +0300
Subject: [PATCH] gnu: Add kodi-cli.
* gnu/packages/kodi.scm (kodi-cli): New variable.
---
gnu/packages/kodi.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Toggle diff (70 lines)
diff --git a/gnu/packages/kodi.scm b/gnu/packages/kodi.scm
index c8a65af79..65621e152 100644
--- a/gnu/packages/kodi.scm
+++ b/gnu/packages/kodi.scm
@@ -25,11 +25,13 @@
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system trivial)
#:use-module (gnu packages algebra)
#:use-module (gnu packages audio)
#:use-module (gnu packages autotools)
#:use-module (gnu packages avahi)
#:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages cdrom)
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
@@ -426,3 +428,49 @@ plug-in system.")
license:public-domain ;cpluff/examples
license:bsd-3 ;misc, gtest
license:bsd-2))))) ;xbmc/freebsd
+
+(define-public kodi-cli
+ (let ((commit "104dc23b2a993c8e6db8c46f4f8bec24b146549b") ; Add support for
+ (revision "1")) ; `$HOME/.kodirc'.
+ (package
+ (name "kodi-cli")
+ (version (string-append "1.1-" revision "." (string-take commit 7)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url "https://github.com/nawar/kodi-cli")
+ (commit commit)))
+ (sha256
+ (base32
+ "1xjhasc5gngfxpr1dlzy6q24w0wpdfjx12p43fanjppxw4i49n5p"))
+ (file-name (string-append name "-" version "-checkout"))))
+ (build-system trivial-build-system)
+ (inputs `(("bash" ,bash)))
+ (propagated-inputs `(("curl" ,curl)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (copy-recursively (assoc-ref %build-inputs "source") ".")
+ (substitute* "kodi-cli"
+ (("/bin/bash") (string-append (assoc-ref %build-inputs "bash")
+ "/bin/bash")))
+ (install-file "kodi-cli" (string-append %output "/bin")))))
+ (home-page "https://github.com/nawar/kodi-cli")
+ (synopsis "Bash script to send commands to Kodi using JSON RPC")
+ (description "@code{kodi-cli} provides the Bash script to send commands to
+Kodi using JSON RPC.
+
+Feautures:
+
+@itemize
+@item Play, pause, stop the current played video.
+@item Skip forward or backward in the current played video.
+@item Play or queue to the current list YouTube video.
+@item Interactive and noninteractive volume control.
+@item Interactive navigation.
+@item Send text.
+@item Toggle fullscreen.
+@item Update or clean Kodi libraries.
+@end itemize\n")
+ (license license:gpl2+))))
--
2.14.3
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAln5bj8ACgkQckbhHGm3
lWl1UQ/9Fn2x3pQrwY2NhmQ7Fh7la3L+rxhAYcjfy5dhbzwMvT0LcI3fll+De6XG
dV+/9dWCXqcy4qbRoWE3jjugVvupO9KKSsasaqxDVPEhSHyht/W7Pl5nPZFAb3VH
AiPp3VXxdLKaQc8K96vezuNKQCjFPSkOHCjbrbYroyklrv0Eidzo1xH1ndoduUtf
U+LDq6Ns/N7wJZs6IbPrMlKhnoGg+IYggSwS5j+k1FknznUTF3lZ7rtnJQ7VEBtL
hTYvJZY7U0VAnrOg4CmXwYXPZK9oa/HKjFgFSw6wXtkY3S192w57kZYIOxeGGiCJ
V/OgVxfVD21fqh6S7aUQjuUnhUKuP00i7R0NXogoimpF3Qath0/78u+X8MYc6ZBJ
vxbUxeAXQGvXTH/KQs5HrxcRGOo5JvMqV5yENi+BNf5kSqd47PXToz6JFupqQDGv
yyUnhO+gqi8C/TSrlxXw0BXLWeL3/olJl0F8wQ0QWi4NuCzkQSTmyvD6Xw5WVFwE
QZS2VT8NmUMouO77538sdnMSOJOObgrzpkT6tuHmdIk/fyva1md4d2KqGrGgCpm1
Y3l75iekXN+vMeFvq3T8aMoCKapmDK0R+Ju6xmWAx9m1mdgQF9GJYmiRpoWv8m6U
1cAZncH+yHWKUvwovxnB8hRumJ5CWrx6rMt2fitwPqNntJ/IcrA=
=HwGC
-----END PGP SIGNATURE-----