# $Id: PKGBUILD 91281 2010-09-26 06:04:21Z remy $ # Maintainer: Giovanni Scafora pkgbase=mythplugins pkgname=('mytharchive' 'mythbrowser' 'mythgallery' 'mythgame' 'mythmusic' 'mythnetvision' 'mythnews' 'mythweather' 'mythzoneminder') pkgver=0.25 pkgrel=7 arch=('i686' 'x86_64') url="http://www.mythtv.org" license=('GPL') conflicts=('mythmovies') makedepends=("mythtv>=${pkgver}" 'mplayer' 'fftw2' 'dvdauthor' 'libexif' 'python-imaging' 'libcdaudio' 'taglib' 'perl-xml-simple' 'dcraw' 'libvisual' 'perl-xml-xpath' 'perl-image-size' 'perl-json' 'perl-class-inspector' 'perl-datetime-format-iso8601' 'flac' 'libvorbis' 'python2' 'python-pycurl' 'python-oauth' 'libcdio' 'fftw') source=(mythburn.py.patch) #_gitroot="https://github.com/MythTV/mythtv.git" #_gitname="mythplugins" build() { if [ -e ${srcdir}/mythplugins ] then rm -rf ${srcdir}/mythplugins fi cd ${startdir} msg "copy in myth plugins src" cp -rp ../git_src/mythtv/mythplugins $srcdir cd ${srcdir}/${pkgbase} msg "The local files are updated." #find . -name '*.py' -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@' cd ${srcdir}/${pkgbase} ./configure --prefix=/usr \ --enable-all qmake mythplugins.pro || return 1 make || return 1 } package_mytharchive() { pkgdesc="MythTV plugin that lets you create DVDs from or archive your recorded shows" depends=("mythtv>=${pkgver}" 'libxmu' 'pil' 'dvdauthor' 'm2vrequantiser') # replaces=('mytharchive') cd "${srcdir}/${_gitname}/${pkgbase}/mytharchive" patch mythburn/scripts/mythburn.py < $srcdir/mythburn.py.patch || return 1 make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythbrowser() { pkgdesc="Mini web browser for MythTV" depends=("mythtv>=${pkgver}") # replaces=('mythbrowser') cd "${srcdir}/${_gitname}/${pkgbase}/mythbrowser" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythgallery() { pkgdesc="Image gallery plugin for MythTV" depends=("mythtv>=${pkgver}" 'libexif') # replaces=('mythgallery') cd "${srcdir}/${_gitname}/${pkgbase}/mythgallery" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythgame() { pkgdesc="Game emulator module for MythTV" depends=("mythtv>=${pkgver}" 'zlib') # replaces=('mythgame') cd "${srcdir}/${_gitname}/${pkgbase}/mythgame" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythmusic() { pkgdesc="Music playing plugin for MythTV" depends=("mythtv>=${pkgver}" 'flac' 'libvorbis' 'libcdaudio' 'cdparanoia' 'taglib' 'libvisual-plugins' 'libcdio' 'fftw' ) # replaces=('mythmusic') cd "${srcdir}/${_gitname}/${pkgbase}/mythmusic" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythnetvision() { pkgdesc="MythNetvision plugin for MythTV" depends=("mythtv>=${pkgver}" 'python-pycurl' 'python-oauth' 'python-lxml' ) # replaces=('mythnetvision') cd "${srcdir}/${_gitname}/${pkgbase}/mythnetvision" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythnews() { pkgdesc="News checking plugin for MythTV" depends=("mythtv>=${pkgver}") # replaces=('mythnews') cd "${srcdir}/${_gitname}/${pkgbase}/mythnews" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythweather() { pkgdesc="Weather checking plugin for MythTV" depends=("mythtv>=${pkgver}" 'perl-xml-xpath' 'perl-image-size' 'perl-class-inspector' 'perl-datetime-format-iso8601' 'perl-date-manip' 'perl-json') # replaces=('mythweather') cd "${srcdir}/${_gitname}/${pkgbase}/mythweather" make INSTALL_ROOT="${pkgdir}" install || return 1 } package_mythzoneminder() { pkgdesc="Allows for viewing of CCTV cameras through zoneminder" depends=("mythtv>=${pkgver}" zoneminder) # replaces=('mythzoneminder') # install=mythplugins-mythzoneminder.install cd "${srcdir}/${_gitname}/${pkgbase}/mythzoneminder" make INSTALL_ROOT="${pkgdir}" install || return 1 } md5sums=('8a0e5e6a7fba3a7d03040fc23556f717')