From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/freevo/PKGBUILD | 44 +++++ community/freevo/freevo.desktop | 11 ++ community/freevo/freevo.install | 25 +++ community/freevo/imdb-html5lib.patch | 301 +++++++++++++++++++++++++++++++++++ 4 files changed, 381 insertions(+) create mode 100644 community/freevo/PKGBUILD create mode 100644 community/freevo/freevo.desktop create mode 100644 community/freevo/freevo.install create mode 100644 community/freevo/imdb-html5lib.patch (limited to 'community/freevo') diff --git a/community/freevo/PKGBUILD b/community/freevo/PKGBUILD new file mode 100644 index 000000000..6b3432d67 --- /dev/null +++ b/community/freevo/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 27382 2010-09-22 14:12:22Z rvanharen $ +# Maintainer: Ronald van Haren + +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') +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 + + } + diff --git a/community/freevo/freevo.desktop b/community/freevo/freevo.desktop new file mode 100644 index 000000000..1b57043be --- /dev/null +++ b/community/freevo/freevo.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Freevo +GenericName=Freevo +Comment=Home theatre +Exec=freevo +Terminal=false +Type=Application +Icon=/usr/share/pixmaps/freevo.png +Categories=AudioVideo; + diff --git a/community/freevo/freevo.install b/community/freevo/freevo.install new file mode 100644 index 000000000..06734569d --- /dev/null +++ b/community/freevo/freevo.install @@ -0,0 +1,25 @@ +post_install() { + if [ ! -d /etc/freevo ]; then + mkdir /etc/freevo + fi + + if [ ! -f /etc/freevo/local_conf.py ]; then + cp /usr/share/doc/freevo/local_conf.py.example /etc/freevo/local_conf.py + fi + +cat << _EOF + +==> freevo installation notes: +--------------------------------------- + Run 'freevo setup --help' and follow the instructions. Then edit + /etc/freevo/local_conf.py to suit your needs. This file can be + installed on a per-user basis in ~/.freevo and will take precedence + over the one in /etc/freevo/. + +_EOF + +} + +post_upgrade() { + post_install +} diff --git a/community/freevo/imdb-html5lib.patch b/community/freevo/imdb-html5lib.patch new file mode 100644 index 000000000..6f454246e --- /dev/null +++ b/community/freevo/imdb-html5lib.patch @@ -0,0 +1,301 @@ +Index: src/helpers/imdb.py +=================================================================== +--- src/helpers/imdb.py (revision 11608) ++++ src/helpers/imdb.py (working copy) +@@ -53,19 +53,19 @@ + parser = OptionParser(version='%prog 1.0', conflict_handler='resolve', usage=""" + Search IMDB for a movie or a TV show + +-freevo imdb [options] [