define(`GIT_NAME', `pvr.hts')dnl define(`GIT_VERSION', `branch=Jarvis')dnl define(`SRC_DIR', `src/GIT_NAME')dnl define(`ADDON_XML', `SRC_DIR/GIT_NAME/addon.xml.in')dnl define(`HTS_VERSION', `esyscmd(sed -e s/@PLATFORM@/dummy/g ADDON_XML | xmllint --xpath "string(/addon/@version)" - || echo 0)')dnl # Maintainer: Daniel Albers # Contributor: dhead666 # https://github.com/AlD/archlinux pkgname=kodi-addon-pvr-hts pkgbase=${pkgname} _gitname=GIT_NAME pkgver=HTS_VERSION _gitver=GIT_VERSION pkgrel=1 pkgdesc='Tvheadend HTSP PVR client addon for Kodi' arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://github.com/kodi-pvr/$_gitname" license=('GPL') groups=('kodi-addons') makedepends=('cmake' 'kodi-platform' 'libplatform') depends=('kodi') source=("git+https://github.com/kodi-pvr/${_gitname}.git#${_gitver}") md5sums=('SKIP') _prefix='/usr' build() { msg "Starting make..." cd "$srcdir/$_gitname" mkdir -p build && pushd build cmake \ -DCMAKE_INSTALL_PREFIX=$_prefix \ -DCMAKE_BUILD_TYPE=Release \ .. make popd } package() { cd "$srcdir/$_gitname/build" make DESTDIR="$pkgdir" install }