# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $ # Maintainer: Cecil Watson pkgname=mythexport pkgver=2.2.3 pkgrel=13 pkgdesc="Export MythTV recording to portable media players" arch=('i686' 'x86_64') license=('GPL3') depends=('atomicparsley' 'perl-config-simple' 'perl-net-upnp' 'perl-xml-rss' 'perl-proc-daemon' 'perl-proc-pid-file' 'perl-html-template' 'handbrake-cli' 'tablet-encode' 'mencoder' 'perl-log-dispatch') optdepends=('lighttpd: For web based interaction') url="http://www.ubuntuupdates.org/mythexport" source=(https://launchpad.net/ubuntu/precise/+source/${pkgname}/${pkgver}-0ubuntu2/+files/${pkgname}_${pkgver}.orig.tar.gz mythexport.lighttpd.include mythexport_gen_light.conf linhes.diff ) install=mythexport.install build() { /bin/true } package() { cd ${srcdir}/${pkgname}-${pkgver} patch -p1 < ../linhes.diff || return 1 cp -a ./etc ${pkgdir}/ || return 1 cp -a ./usr ${pkgdir}/ || return 1 # Install lighttpd include file install -D -m644 ${srcdir}/mythexport.lighttpd.include ${pkgdir}/etc/mythexport/mythexport.lighttpd.include #gen_light_conf install -D -m0744 ${srcdir}/mythexport_gen_light.conf ${pkgdir}/etc/gen_light_conf.d/mythexport.conf # Compress man pages gzip -9 *.1 install -D -m644 mythexport.1.gz ${pkgdir}/usr/share/man/man1/mythexport.1.gz || return 1 install -D -m644 mythimport.1.gz ${pkgdir}/usr/share/man/man1/mythimport.1.gz || return 1 # Standard GPL3 license text already in distro rm -f ${pkgdir}/COPYING } md5sums=('a780c00536a4680ce7d79057658971c8' 'b08404255abcc99a35e9c1ab8e0dec57' 'e6f84aa222eddf803a81d1b92a315d06' 'e32369bb2fde6352798e3522d67527b2')