diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-05-04 13:38:03 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-05-04 13:38:03 (GMT) |
commit | e3f15cf37dfc1253964b800d3a9d8b1a5447e47c (patch) | |
tree | 9fb2c83459d39865d115a75b7418f4479a72ab9d /abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD | |
parent | b1aff49cbaae45dd1cfb6f80b690e9c004bb0869 (diff) | |
download | linhes_pkgbuild-e3f15cf37dfc1253964b800d3a9d8b1a5447e47c.zip linhes_pkgbuild-e3f15cf37dfc1253964b800d3a9d8b1a5447e47c.tar.gz linhes_pkgbuild-e3f15cf37dfc1253964b800d3a9d8b1a5447e47c.tar.bz2 |
kodi-addon-pvr-mythtv-git: replace kodi-addon-pvr-myth and update for kodi 16
Diffstat (limited to 'abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD')
-rw-r--r-- | abs/extra/kodi-addon-pvr-mythtv-git/PKGBUILD | 64 |
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') |