aboutsummaryrefslogtreecommitdiffstats
path: root/community/kodi-pvr-addons/APKBUILD
blob: 85832284887e7ea6eecf21bcb81f1f063370a510 (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
82
83
84
85
86
87
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=kodi-pvr-addons
pkgver=20150322
_git_hash=c2f8ea7223e2879c934c4c06b025313e418587c7
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="mariadb-dev boost-dev"
makedepends="$depends_dev autoconf automake libtool bsd-compat-headers"
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
	$pkgname-iptvsimple:iptvsimple $pkgname-dvblink:dvblink $pkgname-wmc:wmc"
source="$pkgname-$pkgver.tar.gz::https://github.com/opdenkamp/xbmc-pvr-addons/archive/$_git_hash.tar.gz"

_builddir="$srcdir/xbmc-pvr-addons-$_git_hash"

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
}

_mv_addon() {
        local ext=$1
        pkgdesc="${ext} addon for XBMC"
	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
}

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; }
nextpvr()	{ _mv_addon pvr.nextpvr; }
dvblink()	{ _mv_addon pvr.dvblink;  }
iptvsimple()	{ _mv_addon pvr.iptvsimple; }
njoy()		{ _mv_addon pvr.njoy; }
wmc()		{ _mv_addon pvr.wmc; }

md5sums="997d11e72f50636ffd6eb8386951498d  kodi-pvr-addons-20150322.tar.gz"
sha256sums="0ae4e4f86889cb1a4aba2a850b1ca89bc776c2746cdb0cc1040eb7625c1f6a25  kodi-pvr-addons-20150322.tar.gz"
sha512sums="e74a9068ca0c9cf95724f7af4de4d10d872da31f6877b67b91a0ce4dd7c55fcb682a1822507159abc9f3119c864fa7a36a9214173dc1ce7b1c582419daf2f2f3  kodi-pvr-addons-20150322.tar.gz"