diff options
author | Christopher Reimer | 2016-08-17 18:28:38 +0200 |
---|---|---|
committer | Christopher Reimer | 2016-08-17 18:32:30 +0200 |
commit | 5a451248e63c3259a2abf883281378d077232b29 (patch) | |
tree | 0989598c864dee21a2b5d293eac8aee4171b6bcd /PKGBUILD | |
parent | af4d4fc06aac0e2726bd687fc0ea2829a4053cf2 (diff) | |
download | aur-5a451248e63c3259a2abf883281378d077232b29.tar.gz |
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/6f5a8b55e0eecbb9850175cc9827cfb86d615bc7)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -2,50 +2,48 @@ # Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de> pkgname=kodi-addon-pvr-vdr-vnsi -pkgver=1.11.15 -_gitver=7e11b853637ec436e30e4ac826de6ee87c303482 +pkgver=1.11.19 +# Note: Use commits from "Jarvis" branch for Kodi 16 +_gitver=5d54ac0c420e97d48fe9d77f07ccb42d347be980 pkgrel=1 url="https://github.com/kodi-pvr/pvr.vdr.vnsi" arch=('x86_64' 'i686' 'armv6h' 'armv7h') license=('GPL2') pkgdesc="PVR add-on for XBMC to add VDR as a TV/PVR Backend" depends=('kodi') -makedepends=('cmake' 'git' 'kodi-platform' 'libplatform') +makedepends=('cmake' 'git' 'kodi-platform') source=("git+https://github.com/kodi-pvr/pvr.vdr.vnsi.git#commit=$_gitver") md5sums=('SKIP') pkgver() { cd "${srcdir}/pvr.vdr.vnsi/pvr.vdr.vnsi" - grep ' version' addon.xml | cut -d'"' -f2 + grep ' version' addon.xml.in | cut -d'"' -f2 } prepare() { - mkdir -p build cd "${srcdir}/pvr.vdr.vnsi" - + + # "libplatform" got renamed to "p8-platform" with version 2.0 sed -i 's/{platform/{p8-platform/g' CMakeLists.txt sed -i 's/(platform/(p8-platform/g' CMakeLists.txt sed -i 's/"platform/"p8-platform/g' src/{*.cpp,*.h} sed -i 's/PLATFORM/P8PLATFORM/g' src/{*.cpp,*.h} - - mv pvr.vdr.vnsi/addon.xml.in pvr.vdr.vnsi/addon.xml - sed -i 's/@PLATFORM@/linux/g' pvr.vdr.vnsi/addon.xml - sed -i 's/@LIBRARY_FILENAME@/pvr.vdr.vnsi.so/g' pvr.vdr.vnsi/addon.xml } build() { - cd build + mkdir -p "${srcdir}/pvr.vdr.vnsi/build" + cd "${srcdir}/pvr.vdr.vnsi/build" cmake -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \ -DCMAKE_BUILD_TYPE=Release \ - ../pvr.vdr.vnsi + .. make } package() { - cd build + cd "${srcdir}/pvr.vdr.vnsi/build" make DESTDIR="${pkgdir}" install cp -r "$srcdir"/pvr.vdr.vnsi/pvr.vdr.vnsi/* "$pkgdir/usr/lib/kodi/addons/pvr.vdr.vnsi" |