summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Farley2017-12-02 11:37:34 -0600
committerRyan Farley2017-12-02 11:37:34 -0600
commit10bd772729a1e2e4dae9a2baff6fbaa023f16e32 (patch)
treef2dac9bbdb64881a40997dc9cd21a62f7500416b
downloadaur-10bd772729a1e2e4dae9a2baff6fbaa023f16e32.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
-rwxr-xr-xkodi-cli-git.install5
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..31bdfc538ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = kodi-cli-git
+ pkgdesc = Kodi/XBMC bash script to send Kodi commands from the command line
+ pkgver = r49.e97efce
+ pkgrel = 1
+ url = https://github.com/nawar/kodi-cli
+ install = kodi-cli-git.install
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = curl
+ provides = kodi-cli
+ conflicts = kodi-cli
+ source = git+https://github.com/nawar/kodi-cli
+ md5sums = SKIP
+
+pkgname = kodi-cli-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..becb3513d45
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Ryan Farley <ryan.farley@gmx.com>
+pkgname=kodi-cli-git
+pkgver=r49.e97efce
+pkgrel=1
+pkgdesc="Kodi/XBMC bash script to send Kodi commands from the command line"
+arch=('any')
+url="https://github.com/nawar/kodi-cli"
+license=('GPL')
+depends=('curl')
+makedepends=('git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+install="${pkgname}.install"
+source=('git+https://github.com/nawar/kodi-cli')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -D -m755 kodi-cli ${pkgdir}/usr/bin/kodi-cli
+ install -D -m755 playlist_to_kodi ${pkgdir}/usr/bin/playlist_to_kodi
+ install -D -m644 .kodirc ${pkgdir}/usr/share/doc/kodi-cli/kodirc-example
+}
diff --git a/kodi-cli-git.install b/kodi-cli-git.install
new file mode 100755
index 00000000000..d1b4da3d5b6
--- /dev/null
+++ b/kodi-cli-git.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo ''
+ echo 'Configuration is done either through environment variables (KODI_HOST,KODI_PORT, KODI_USER, KODI_PASS) or through a .kodirc in $HOME (an example is included in /usr/share/doc/kodi-cli/kodirc-example'
+ echo ''
+}