summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/stable-0.21/mythstream/PKGBUILD
blob: 275afa851067f0b213bdc37adaf817a92abeef8c (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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Juergen Hoetzel <juergen@archlinux.org> 
# Contributor: kleptophobiac@gmail.com

pkgname=mythstream
pkgver=0.18_1
pkgrel=8
pkgdesc="Unofficial MythTV plugin for Internet audio and video streams."
arch=('i686' 'x86_64')
url="http://home.kabelfoon.nl/~moongies/streamtuned.html"
license=('GPL')
depends=('mythtv' 'perl-xml-simple')
source=("http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream-v0.18_1.tar.gz" "http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream.cpp.patch_svn20071123" "mythstream.diff")
md5sums=('')
install=mythstream.install
groups=('mythtv-extras')
install=mythstream.install

build() {
   cd $startdir/src/mythstream-0.18_1
   patch -p1 < ../mythstream.diff
   patch -p0 < ../mythstream.cpp.patch_svn20071123
   ln -s ../../../mythtv/src/mythtv-0.21/libs/lib* .
   . /etc/profile.d/qt3.sh

   # use QT3 qmake
   export PATH=$QTDIR/bin:$PATH
   echo "INCLUDEPATH += /usr/include/mythtv" >> mythstream/mythstream.pro

   qmake mythstream.pro
   make qmake || return 1
   make -j 2 || return 1

   make INSTALL_ROOT=$startdir/pkg install
}