# Maintainer: boenki <boenki at gmx dot de>
# Contributor: Soeren Koerner <nonick at posteo dot de>
# Contributor: Benedikt 'linopolus' Mueller <benemue at googlemail dot com>
pkgname=mediathek
pkgver=3.0.0
pkgrel=1
pkgdesc="Offers access to the Mediathek of different tv stations (ARD, ZDF, Arte, etc.)"
arch=(any)
url="http://zdfmediathk.sourceforge.net"
license=('custom')
depends=('java-runtime' 'vlc')
optdepends=('mplayer: record streams' 'flvstreamer: stream flash')
source=(http://downloads.sourceforge.net/zdfmediathk/MediathekView_${pkgver}.zip
$pkgname
$pkgname.desktop)
md5sums=('ddff07a9f98febf3567091b33954cfe0'
'3b2dd77009a7da2117f540e201ff9277'
'7d4548884f5dc517ad30fd0584ec9d46')
package() {
cd $srcdir
install -d $pkgdir/{opt/$pkgname/{lib,bin},usr/{bin,share/{{doc,licenses}/$pkgname,applications}}}
install -m755 $pkgname $pkgdir/usr/bin/
install -m644 MediathekView.jar $pkgdir/opt/$pkgname/
install -m644 -t $pkgdir/opt/$pkgname/lib lib/*
install -m644 -t $pkgdir/opt/$pkgname/bin bin/*
install -m644 $pkgname.desktop $pkgdir/usr/share/applications/
install -m644 Anleitung.pdf $pkgdir/usr/share/doc/$pkgname/
install -m644 -t $pkgdir/usr/share/licenses/$pkgname Copyright/*
rm $pkgdir/usr/share/licenses/$pkgname/flvstreamer-LICENSE.txt
}