summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mythvodka/PKGBUILD
blob: ed7def18216afc8b01a3e491fa79d2a9fee0d3a0 (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
# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
# Maintainer: Cecil Watson<knoppmyth@gmail.com>

pkgname=mythvodka
pkgver=0.7
pkgrel=5
pkgdesc="MythVodka (Video On Demand Killer App) is a plugin for MythTV allowing streaming of BBC iPlayer, Hulu, HTTP and NZB content."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://code.google.com/p/mythvodka/"
depends=('rtmpdump')
install=mythvodka.install
source=('http://mythvodka.googlecode.com/files/mythvodka.07.tar.gz' 'mythvodka.diff' 'hulu_grabber.sh')

build() {
	patch -p0 < mythvodka.diff
	cd $startdir/src/mythvodka/mythvodka
	rm -fr Makefile
	qmake mythvodka.pro
	make
	mkdir -p $startdir/pkg/usr/lib/mythtv/plugins/
	cp libmythvodka.so $startdir/pkg/usr/lib/mythtv/plugins/
	strip --strip-unneeded $startdir/pkg/usr/lib/mythtv/plugins/libmythvodka.so
	mkdir -p $startdir/pkg/usr/share/mythtv/themes/default/
	cp streams-ui.xml $startdir/pkg/usr/share/mythtv/themes/default/
	mkdir -p $startdir/pkg/usr/share/mythtv/themes/default-wide/
	cp theme-wide/streams-ui.xml $startdir/pkg/usr/share/mythtv/themes/default-wide/
	mkdir -p $startdir/pkg/usr/bin
	chmod a+x ../scripts/*
	cp -p ../scripts/* $startdir/pkg/usr/bin
	mkdir -p $startdir/pkg/etc/cron.daily/
	chmod 755 ../../hulu_grabber.sh
	cp ../../hulu_grabber.sh $startdir/pkg/etc/cron.daily/
}