# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $ # Maintainer: Cecil Watson<knoppmyth@gmail.com> pkgname=mythappletrailers pkgver=0.04.3 pkgrel=47 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." arch=('x86_64') license=('GPL2') url="http://www.mythtv.org/wiki/index.php/Myth_Apple_Trailers" depends=('php' 'mythtv' 'mplayer-wrapper') install=mythappletrailers.install source=('myth_trailers_grabber' 'appletrailer.xml'\ 'trailers' 'loading.sh'\ 'play_trailer.sh' 'gen_trailer_menu.sh'\ 'apple_all_trailers' 'apple_shuffle_trailers'\ 'appletrailers_is.conf') #. /usr/MythVantage/bin/install_functions.sh package() { MYTHHOME="/home/mythtv" mkdir -p $pkgdir/usr/bin mkdir -p $pkgdir/etc/cron.daily mkdir -p $pkgdir/$MYTHHOME mkdir -p $pkgdir/usr/share/mythtv/ cp appletrailer.xml $pkgdir/$MYTHHOME/appletrailer.xml chown 1000:1000 $pkgdir/$MYTHHOME/appletrailer.xml chmod 755 trailers chmod 755 myth_trailers_grabber chmod 755 loading.sh cp myth_trailers_grabber $pkgdir/usr/bin/ cp loading.sh $pkgdir/usr/bin/ cp trailers $pkgdir/etc/cron.daily/ install -m755 $srcdir/play_trailer.sh $pkgdir/usr/bin install -m755 $srcdir/gen_trailer_menu.sh $pkgdir/usr/bin install -m644 $srcdir/apple_all_trailers $pkgdir/home/mythtv install -m644 $srcdir/apple_shuffle_trailers $pkgdir/home/mythtv chown 1000:1000 $pkgdir/$MYTHHOME/*_trailers #add in file for gen_is.xml install -D -m0744 ${srcdir}/appletrailers_is.conf ${pkgdir}/etc/gen_is_xml.d/appletrailers_is.conf } md5sums=('c70339830f6d538035b715ee779a4f2f' 'be0d071981e5536f24aaf67545a96cc5' '1c5a2730628e696606357ad5378a134c' 'f4a7f6d13ccb61e16934529ad5b7e69a' 'dfaf2c692c0913f489f479a8fa61a243' '5b3d9551d363bfbd6c3529984b317940' '7af1e58dfab2772dbb6f339481ae8d5d' 'd26681921482cbf334b43f700adf0d29' '341eb4f98b70b51b9420f58051c8df6a')