updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / tvbrowser / PKGBUILD
blobd60afd13b762ece0cacde6773da4f87450ae1f65
1 # Contributor: Sebastian Sareyko <public@nooms.de>
2 # Maintainer: Gergely Imreh <imrehgATgmailDOTcom>
3 pkgname=tvbrowser
4 pkgver=3.1
5 pkgrel=1
6 pkgdesc="A java-based TV guide which is easily extensible using plugins"
7 arch=('any')
8 url="http://www.tvbrowser.org"
9 license=('GPL3')
10 install="${pkgname}.install"
11 depends=('java-runtime' 'x-server' 'xdg-utils' 'hicolor-icon-theme')
12 source=(http://downloads.sourceforge.net/project/tvbrowser/TV-Browser%20Releases%20%28Java%206%20and%20higher%29/${pkgver}/tvbrowser_${pkgver}_bin.tar.gz
13         http://www.tvbrowser.org/images/$pkgname/${pkgname}_logo.svg
14         $pkgname.sh
15         $pkgname.desktop)
16 build() {
17   # Removing delivered desktop entry and shell script.
18   rm $srcdir/$pkgname-$pkgver/$pkgname.{sh,desktop}
20   install -d -m755 $pkgdir/usr/share/java
21   cp -R $srcdir/$pkgname-$pkgver $pkgdir/usr/share/java/$pkgname
23   # Installing the official scalable logo, which can/will be used by modern window managers / desktop environments that support SVG.
24   install -D -m644 $srcdir/${pkgname}_logo.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg
26   install -D -m755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
27   install -D -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
29   # Installing the complete bundle of copyright notices. At least because of the BSD license part this step is necessary (http://wiki.archlinux.org/index.php/Arch_Packaging_Standards#Licenses)
30   install -D -m644 $srcdir/$pkgname-$pkgver/COPYRIGHT.txt $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.txt
32   # For window managers that don't support SVG (yet) (like e.g. fluxbox), we can also install the set of icons as delivered by the tvbrowser package.
33   for _i in 16 32 48 128; do
34     install -D -m644 $srcdir/$pkgname-$pkgver/imgs/${pkgname}${_i}.png $pkgdir/usr/share/icons/hicolor/${_i}x${_i}/apps/$pkgname.png
35   done
37 md5sums=('8e7c4070b2ea1704cc1d21aed4ca0549'
38          'ac75767a87d94e51afe0897f1614d256'
39          '96ae258b2917c54b167102f6bbdc58b4'
40          '622e89ee1e3915e42dfa913ea7d98e20')