summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythappletrailers/PKGBUILD
blob: 89ea17f2326c9dce313475aefc4e25c524105243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $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')