# $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_3
pkgrel=13
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' 'fftw' 'fftw2' 'perl-xml-xql')
source=("http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream_mythtv-r21640.tar.gz" "mythstream.0.24.patch" "streams.res")
md5sums=('')
install=mythstream.install
groups=('mythtv-extras')
install=mythstream.install

build() {
   cd $startdir/src/mythstream_mythtv-r21640
   ln -s ../../../mythtv/stable-0.24/mythtv/src/mythtv/mythtv/libs/lib* .

   patch -p1 < ../mythstream.0.24.patch || return 1

   export QTDIR=/usr/lib/qt
   export PATH=$QTDIR/bin:$PATH

   qmake mythstream.pro
   make qmake || return 1

   make INSTALL_ROOT=$startdir/pkg install
   cp $srcdir/streams.res $pkgdir/usr/share/mythtv/mythstream
}

md5sums=('ba354b83fefe6028c5379fb832a44b6a'
         '69804486cde663586283cf2a226f0ed4'
         'b7fb47a56b6809938f237632174faeb2')