summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythappletrailers/PKGBUILD
blob: e82e49af8c5b9748e856608980235c3fd64ffed1 (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
# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
# Maintainer: Cecil Watson<knoppmyth@gmail.com>

pkgname=mythappletrailers
pkgver=0.04.3
pkgrel=42
pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers."
arch=('i686' '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' 'fix_aple_url.sh' 'appletrailers_is.conf')
. /usr/MythVantage/bin/install_functions.sh
build() {
   #This bit of code is used to determine where mythhome is located
  home_check
  mkdir -p $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/etc/cron.daily
  mkdir -p $startdir/pkg/$MYTHHOME
  mkdir -p $startdir/pkg/usr/share/mythtv/
  cp appletrailer.xml  $startdir/pkg/$MYTHHOME/appletrailer.xml
  chown 1000:1000 $startdir/pkg/$MYTHHOME/appletrailer.xml
  chmod 755 trailers
  chmod 755 myth_trailers_grabber
  chmod 755 loading.sh 
  cp myth_trailers_grabber $startdir/pkg/usr/bin/
  cp loading.sh $startdir/pkg/usr/bin/
  cp trailers $startdir/pkg/etc/cron.daily/
  install -m755 $srcdir/fix_aple_url.sh $pkgdir/usr/bin
  #add in file for gen_is.xml
  install -D -m0744 ${srcdir}/appletrailers_is.conf ${pkgdir}/etc/gen_is_xml.d/appletrailers_is.conf

}
md5sums=('336e68953d0e1e8a0c7a4990f8d43a2b'
         'c7da92600afe2a3b1f564764500315a0'
         '5fdd4aa17b9c1e77b272437ae42a1827'
         'aff3d1ce845ce8364d336032788118f7'
         'a2349f844e47fd95a672739177ca44ff'
         '341eb4f98b70b51b9420f58051c8df6a')