diff options
author | Westin Miller | 2016-03-03 15:36:31 -0800 |
---|---|---|
committer | Westin Miller | 2016-03-03 15:36:31 -0800 |
commit | 7f3f293c5d598d88ac8fe15dfce6dded56c6775a (patch) | |
tree | e8e968d3c2cd242c11435251657cb3d70d27ba71 | |
parent | 737b868fa20f474485d68ea12230e2158714ac51 (diff) | |
download | aur-7f3f293c5d598d88ac8fe15dfce6dded56c6775a.tar.gz |
Support for API 16 (Jarvis)
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -2,15 +2,31 @@ # Contributor: Michael Lass <bevan@bi-co.net> pkgname=kodi-addon-pvr-mythtv-git -pkgver=r434.95b43c0 +pkgver=r532.84b0b6b pkgrel=1 -_branch=Isengard +if [ -z "$API" ]; then + error "No API Version Defined. 15 = Isengard, 16 = Jarvis, 99 = git master" + exit 1 +fi + +_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-git') -depends=('kodi>=15.0') +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}") @@ -22,6 +38,8 @@ pkgver() { } build() { + echo "API Version $API" + echo "Branch version $_branch" mkdir -p "$pkgname/build" cd "$pkgname/build" |