summaryrefslogtreecommitdiff
path: root/community/freevo/PKGBUILD
blob: 6ca2dc88ee58956a54d0d547c8a3126b2cec9f11 (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
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 27382 2010-09-22 14:12:22Z rvanharen $
# Maintainer: Ronald van Haren  <ronald.archlinux.org>

pkgname=freevo
pkgver=1.9.0
pkgrel=5
pkgdesc="Freevo is an open-source home theatre PC platform based on Linux and a number of open-source audio/video tools."
url="http://freevo.sourceforge.net/"
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
depends=('lame' 'flac' 'faad2' 'cdparanoia' 'vorbis-tools' \
	 'fbset' 'smpeg' 'pil' 'python-pysqlite-legacy' \
	 'pyxml' 'lsdvd'  'twisted' 'python-numpy' 'python-pygame'\
	 'kaa-metadata' 'kaa-imlib2' 'beautiful-soup' 'python-html5lib')
optdepends=('mplayer: most features' 'xine-lib: can be used instead of mplayer' 'tvtime: watching tv' 'xmltv: parsing online tv guides')
install=freevo.install
options=('docs')
source=(http://downloads.sourceforge.net/freevo/$pkgname-$pkgver.tar.gz \
	freevo.desktop
	imdb-html5lib.patch)
md5sums=('aeb05e52f996258386af2951688bf6e3'
         '9c5fcea7149bf52978730229831d1a40'
	 'b11f82049f112f9964a29d37a461fee5')

build() {
  cd $srcdir/$pkgname-$pkgver

  # patch from http://sourceforge.net/tracker/index.php?func=detail&aid=2924872&group_id=46652&atid=446895
  patch -p0 < $srcdir/imdb-html5lib.patch
  python2 setup.py install --prefix=$pkgdir/usr
  
  install -Dm644 local_conf.py.example $pkgdir/usr/share/doc/freevo/local_conf.py.example

  # install .desktop file and icon
  install -Dm644 $srcdir/$pkgname-$pkgver/share/icons/misc/freevo_app.png \
  	$pkgdir/usr/share/pixmaps/freevo.png
  install -Dm644 $srcdir/freevo.desktop \
  	$pkgdir/usr/share/applications/freevo.desktop

  # fix executable for python 2.7
  sed -i "s|search = ('python', 'python2')|search = ('python2', 'python2.7')|" $pkgdir/usr/bin/freevo

  }