# Contributor: Carlo Landmeter # Maintainer: setvar pkgname = 'kodi-pvr-addons' setvar pkgver = '20150322' setvar _git_hash = 'c2f8ea7223e2879c934c4c06b025313e418587c7' setvar pkgrel = '0' setvar pkgdesc = ""XBMC PVR add-ons"" setvar url = ""https://github.com/opdenkamp/xbmc-pvr-addons"" setvar arch = ""all"" setvar license = ""GPL"" setvar depends = ""$pkgname-hts $pkgname-argustv $pkgname-demo $pkgname-dvbviewer $pkgname-hts $pkgname-mediaportal $pkgname-nextpvr $pkgname-njoy $pkgname-vdr $pkgname-vuplus $pkgname-mythtv"" setvar depends_dev = ""mariadb-dev boost-dev"" setvar makedepends = ""$depends_dev autoconf automake libtool bsd-compat-headers"" setvar install = """" setvar subpackages = ""$pkgname-argustv:argustv $pkgname-demo:demo $pkgname-dvbviewer:dvbviewer $pkgname-hts:hts $pkgname-mythtv:mythtv $pkgname-mediaportal:mediaportal $pkgname-nextpvr:nextpvr $pkgname-njoy:njoy $pkgname-vdr:vdr $pkgname-vuplus:vuplus $pkgname-iptvsimple:iptvsimple $pkgname-dvblink:dvblink $pkgname-wmc:wmc"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/opdenkamp/xbmc-pvr-addons/archive/$_git_hash.tar.gz"" setvar _builddir = ""$srcdir/xbmc-pvr-addons-$_git_hash"" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir ./bootstrap || return 1 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --enable-addons-with-dependencies \ || return 1 make || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 } proc _mv_addon { local ext=$1 setvar pkgdesc = ""${ext} addon for XBMC"" setvar depends = '' mkdir -p "$subpkgdir"/usr/lib/kodi/addons \ "$subpkgdir"/usr/share/kodi/addons mv "$pkgdir"/usr/lib/kodi/addons/$ext \ "$subpkgdir"/usr/lib/kodi/addons mv "$pkgdir"/usr/share/kodi/addons/$ext \ "$subpkgdir"/usr/share/kodi/addons } proc argustv { _mv_addon pvr.argustv; } proc demo { _mv_addon pvr.demo; } proc dvbviewer { _mv_addon pvr.dvbviewer; } proc hts { _mv_addon pvr.hts; } proc mediaportal { _mv_addon pvr.mediaportal.tvserver; } proc nextpvr { _mv_addon pvr.nextpvr; } proc njoy { _mv_addon pvr.njoy; } proc vdr { _mv_addon pvr.vdr.vnsi; } proc vuplus { _mv_addon pvr.vuplus; } proc mythtv { _mv_addon pvr.mythtv; } proc nextpvr { _mv_addon pvr.nextpvr; } proc dvblink { _mv_addon pvr.dvblink; } proc iptvsimple { _mv_addon pvr.iptvsimple; } proc njoy { _mv_addon pvr.njoy; } proc wmc { _mv_addon pvr.wmc; } setvar md5sums = ""997d11e72f50636ffd6eb8386951498d kodi-pvr-addons-20150322.tar.gz"" setvar sha256sums = ""0ae4e4f86889cb1a4aba2a850b1ca89bc776c2746cdb0cc1040eb7625c1f6a25 kodi-pvr-addons-20150322.tar.gz"" setvar sha512sums = ""e74a9068ca0c9cf95724f7af4de4d10d872da31f6877b67b91a0ce4dd7c55fcb682a1822507159abc9f3119c864fa7a36a9214173dc1ce7b1c582419daf2f2f3 kodi-pvr-addons-20150322.tar.gz""