summaryrefslogtreecommitdiffstats
path: root/abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD')
-rw-r--r--abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD64
1 files changed, 64 insertions, 0 deletions
diff --git a/abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD b/abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD
new file mode 100644
index 0000000..cee5f2d
--- /dev/null
+++ b/abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Westin Miller <equinox.aur@gmail.com>
+# Contributor: Michael Lass <bevan@bi-co.net>
+
+pkgname=kodi-addon-pvr-mythtv-git
+pkgver=r543.fd91be1
+pkgrel=1
+API=16
+if [ -z "$API" ]; then
+ error "No API Version Defined, defaulting to 16. 15 = Isengard, 16 = Jarvis, 99 = git master"
+fi
+API=${API:-16}
+
+_branch=$(
+ case "${API}" in
+ 15) echo "Isengard";;
+ 16) echo "Jarvis";;
+ 99) echo "master";;
+ *) error "Unknown API version.";;
+ esac
+)
+pkgdesc='MythTV PVR client addon for Kodi'
+arch=('armv7h' 'i686' 'x86_64')
+url="https://github.com/kodi-pvr/pvr.hts"
+license=('GPL')
+makedepends=('cmake' 'git' 'kodi-platform')
+if [ "$API" -eq "99" ]; then
+ depends=("kodi-git")
+else
+ depends=("kodi>=$API.0" "kodi<$[$API+1].0")
+fi
+provides=('kodi-addon-pvr-mythtv')
+conflicts=('kodi-addon-pvr-mythtv' 'kodi-pvr-addons')
+source=("${pkgname}::git+https://github.com/kodi-pvr/pvr.mythtv.git#branch=${_branch}"
+ 'p8-platform.patch')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd kodi-addon-pvr-mythtv-git/
+ patch -p1 -i ${srcdir}/p8-platform.patch
+ cd ..
+
+ echo "API Version $API"
+ echo "Branch version $_branch"
+ mkdir -p "$pkgname/build"
+ cd "$pkgname/build"
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
+ -DCMAKE_BUILD_TYPE=Release \
+ ..
+ make
+}
+
+package() {
+ cd "$pkgname/build"
+ make DESTDIR="$pkgdir" install
+}
+md5sums=('SKIP'
+ 'a3cf865a74564f1c07b16c20265174d2')