aboutsummaryrefslogtreecommitdiffstats
path: root/main/xbmc-pvr-addons/APKBUILD
blob: 79a1d5f478b3c507475b5669bc79fc1e72c4ecc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xbmc-pvr-addons
pkgver=12.0
_realver=$pkgver-Frodo
pkgrel=4
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="saveas-https://github.com/opdenkamp/xbmc-pvr-addons/archive/$_realver.tar.gz/$pkgname-$pkgver.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 \
		--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
}

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="4a1020b1a890e26505da7cc9afef1cea  xbmc-pvr-addons-12.0.tar.gz"
sha256sums="6a580bccda532369ce7b08319fc93341ca4e9b111b7b63e707d4c6fa8a3c5ee0  xbmc-pvr-addons-12.0.tar.gz"
sha512sums="91c8680263f4b48e02dd9fd6850d3396e00a601421c5fe08ae9d76feabdaa819beb4c253cf47e11290d89c2eaaf6eabfb2145b452cbce23e1995d794c65a492e  xbmc-pvr-addons-12.0.tar.gz"