summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRyan Farley2017-12-02 11:37:34 -0600
committerRyan Farley2017-12-02 11:37:34 -0600
commit10bd772729a1e2e4dae9a2baff6fbaa023f16e32 (patch)
treef2dac9bbdb64881a40997dc9cd21a62f7500416b /PKGBUILD
downloadaur-kodi-cli-git.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
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
+}