aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2012-11-29 18:25:02 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2012-11-29 18:25:02 +0100
commit7bdcb1bb5b06ccea83ca82a5c0e29f333b5115c4 (patch)
tree8843fe8314635e174bc1c33b3e4bd3c85afce179
parent53b0206d7321809bb72cbf218363a15d3346b733 (diff)
downloadaports-7bdcb1bb5b06ccea83ca82a5c0e29f333b5115c4.tar.bz2
aports-7bdcb1bb5b06ccea83ca82a5c0e29f333b5115c4.tar.xz
testing/xbmc-pvr-addons: new aport
-rw-r--r--testing/xbmc-pvr-addons/APKBUILD96
1 files changed, 96 insertions, 0 deletions
diff --git a/testing/xbmc-pvr-addons/APKBUILD b/testing/xbmc-pvr-addons/APKBUILD
new file mode 100644
index 0000000000..b518b9c451
--- /dev/null
+++ b/testing/xbmc-pvr-addons/APKBUILD
@@ -0,0 +1,96 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=xbmc-pvr-addons
+_date=20121129
+pkgver="$_date"
+pkgrel=0
+pkgdesc="XBMC PVR add-ons"
+url="https://github.com/opdenkamp/xbmc-pvr-addons"
+arch="all"
+license="GPL"
+depends="xbmc-pvr-hts xbmc-pvr-argustv xbmc-pvr-demo xbmc-pvr-dvbviewer
+ xbmc-pvr-hts xbmc-pvr-mediaportal xbmc-pvr-nextpvr xbmc-pvr-njoy
+ xbmc-pvr-vdr xbmc-pvr-vuplus xbmc-pvr-mythtv"
+depends_dev="mysql-dev boost-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install=""
+subpackages="xbmc-pvr-argustv:argustv xbmc-pvr-demo:demo
+ xbmc-pvr-dvbviewer:dvbviewer xbmc-pvr-hts:hts xbmc-pvr-mythtv:mythtv
+ xbmc-pvr-mediaportal:mediaportal xbmc-pvr-nextpvr:nextpvr
+ xbmc-pvr-njoy:njoy xbmc-pvr-vdr:vdr xbmc-pvr-vuplus:vuplus"
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${_date}.tar.gz"
+_builddir="$srcdir/$pkgname-20121129"
+_giturl="git://github.com/opdenkamp/xbmc-pvr-addons.git"
+_upload="dev.alpinelinux.org:/archive/$pkgname/"
+
+snapshot() {
+ _date=$(date +%Y%m%d)
+ local _pkg=$pkgname-$_date.tar.gz
+ mkdir -p "$srcdir"
+ cd "$srcdir"
+ rm -rf ${_giturl##*/}
+ git clone --depth=1 --bare $_giturl || return 1
+ git --git-dir ${_giturl##*/} archive -o $_pkg \
+ --prefix=$pkgname-$_date/ HEAD \
+ || return 1
+ msg "New snapshot: $_pkg"
+ msg "Uploading to $_upload"
+ rsync -ave ssh $_pkg $_upload || return 1
+ cd ..
+ sed -i -e "s/^_date=.*/_date=$_date/" APKBUILD || return 1
+ abuild checksum
+}
+
+
+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"
+ 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="901f7c9cdbc188b460cb6a7733f30c85 xbmc-pvr-addons-20121129.tar.gz"