# $Id: PKGBUILD 70479 2012-05-09 10:48:34Z jconder $ # Maintainer: Jonathan Conder # Contributor: Giovanni Scafora pkgbase=mythplugins pkgname=('mythplugins-mytharchive' 'mythplugins-mythbrowser' 'mythplugins-mythgallery' 'mythplugins-mythgame' 'mythplugins-mythmusic' 'mythplugins-mythnetvision' 'mythplugins-mythnews' 'mythplugins-mythweather' 'mythplugins-mythweb' 'mythplugins-mythzoneminder') pkgver=0.25 pkgrel=3 epoch=1 arch=('i686' 'x86_64' 'mips64el') url="http://www.mythtv.org" license=('GPL') makedepends=('cdrkit' 'dvdauthor' 'dvd+rw-tools' 'ffmpeg' 'flac' 'libexif' 'libvorbis' 'mplayer' 'mythtv' 'perl-datetime-format-iso8601' 'perl-date-manip' 'perl-image-size' 'perl-json' 'perl-libwww' 'perl-soap-lite' 'perl-xml-sax' 'perl-xml-simple' 'perl-xml-xpath' 'python2-oauth' 'python-imaging' 'python-pycurl' 'taglib' 'zlib') source=("ftp://ftp.osuosl.org/pub/mythtv/$pkgbase-$pkgver.tar.bz2" 'php54.patch' 'mtd.rc') md5sums=('b3f2768372a38e92ca94841519daa05e' '7a114c1b5a84ab5ee190e63cc9514086' '476c12ba074794ad7f4ae092bdf949d6') build() { cd "$srcdir/$pkgbase-$pkgver" find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' patch -d 'mythweb' -Np0 -i "$srcdir/php54.patch" sed -re 's@/usr/local.*/usr/share@/usr/share@' -i 'mythweb/mythweb.php' sed -re 's@cstdio@cstdio>\n#include