diff options
Diffstat (limited to 'main/xbmc-pvr-addons')
-rw-r--r-- | main/xbmc-pvr-addons/APKBUILD | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/main/xbmc-pvr-addons/APKBUILD b/main/xbmc-pvr-addons/APKBUILD new file mode 100644 index 000000000..7929b1aba --- /dev/null +++ b/main/xbmc-pvr-addons/APKBUILD @@ -0,0 +1,76 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=xbmc-pvr-addons +pkgver=12_rc3 +_realver=Frodo_rc3 +pkgrel=0 +pkgdesc="XBMC PVR add-ons" +url="https://github.com/opdenkamp/xbmc-pvr-addons" +arch="all" +license="GPL" +depends="$pkgname-hts $pkgname-argustv $pkgname-demo $pkgname-dvbviewer + $pkgname-hts $pkgname-mediaportal $pkgname-nextpvr $pkgname-njoy + $pkgname-vdr $pkgname-vuplus $pkgname-mythtv" +depends_dev="mysql-dev boost-dev" +makedepends="$depends_dev autoconf automake libtool" +install="" +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" +source="https://github.com/opdenkamp/xbmc-pvr-addons/archive/$_realver.tar.gz" +_builddir="$srcdir/$pkgname-$_realver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./bootstrap || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-addons-with-dependencies \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +_mv_addon() { + local ext=$1 + pkgdesc="${ext} addon for XBMC" + depends= + mkdir -p "$subpkgdir"/usr/lib/xbmc/addons \ + "$subpkgdir"/usr/share/xbmc/addons + mv "$pkgdir"/usr/lib/xbmc/addons/$ext \ + "$subpkgdir"/usr/lib/xbmc/addons + mv "$pkgdir"/usr/share/xbmc/addons/$ext \ + "$subpkgdir"/usr/share/xbmc/addons +} + +argustv() { _mv_addon pvr.argustv; } +demo() { _mv_addon pvr.demo; } +dvbviewer() { _mv_addon pvr.dvbviewer; } +hts() { _mv_addon pvr.hts; } +mediaportal() { _mv_addon pvr.mediaportal.tvserver; } +nextpvr() { _mv_addon pvr.nextpvr; } +njoy() { _mv_addon pvr.njoy; } +vdr() { _mv_addon pvr.vdr.vnsi; } +vuplus() { _mv_addon pvr.vuplus; } +mythtv() { _mv_addon pvr.mythtv.cmyth; } + +md5sums="ca9ee6c1ee57c289c82dc84e3bdb38bd Frodo_rc3.tar.gz" |