summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2df5152b446781db65426fde3a18ac13c5dab853 (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
# Contributor: Andre Renaud <{andrepleblanc,renaudtrudel}@gmail.com>
# Contributor: Marius Muja
# Maintainer: Aaron Ali <t0nedef@causal.ca>
pkgname=kodi-addon-canada-on-demand-git
pkgver=20130313
pkgrel=4
pkgdesc="KODI video plugin for streaming live and pre-recorded content from Canadian websites"
arch=('any')
url="http://github.com/marius-muja/plugin.video.canada.on.demand"
license=('GPL')
depends=('kodi')
install=install
makedepends=('git')
replaces=(xbmc-addon-canada-on-demand)
provides=(kodi-addon-canada-on-demand)
conflicts=(kodi-addon-canada-on-demand)

_gitroot="git://github.com/marius-muja/plugin.video.canada.on.demand.git"
_gitname="plugin.video.canada.on.demand"

build() {
	cd ${srcdir}/
	msg "Connecting to the GIT server...."
	if [[ -d ${srcdir}/${_gitname} ]] ; then
		cd ${_gitname}
		git pull origin
		msg "The local files are updated..."
	else
		git clone ${_gitroot}
	fi
	msg "GIT checkout done. Building."
}

package() {
	mkdir -p ${pkgdir}/usr/share/kodi/addons/${_gitname}
	for target in `ls ${srcdir}/$_gitname`; do
		cp -r ${srcdir}/${_gitname}/$target ${pkgdir}/usr/share/kodi/addons/${_gitname}/.
	done
}