From 69728241bca2e2e98ce3eabdc6e5e312b9086358 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 30 Aug 2012 19:29:39 -0500 Subject: mythappletrailers: remove references to /home/mythtv --- abs/extra/mythappletrailers/PKGBUILD | 12 +++++++----- abs/extra/mythappletrailers/mythappletrailers.install | 9 ++++++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/abs/extra/mythappletrailers/PKGBUILD b/abs/extra/mythappletrailers/PKGBUILD index 56ff18c..e82e49a 100644 --- a/abs/extra/mythappletrailers/PKGBUILD +++ b/abs/extra/mythappletrailers/PKGBUILD @@ -3,7 +3,7 @@ pkgname=mythappletrailers pkgver=0.04.3 -pkgrel=41 +pkgrel=42 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." arch=('i686' 'x86_64') license=('GPL2') @@ -12,14 +12,16 @@ 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/home/mythtv/ + mkdir -p $startdir/pkg/$MYTHHOME mkdir -p $startdir/pkg/usr/share/mythtv/ - cp appletrailer.xml $startdir/pkg/home/mythtv/appletrailer.xml - chown 1000:1000 $startdir/pkg/home/mythtv/appletrailer.xml + 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 diff --git a/abs/extra/mythappletrailers/mythappletrailers.install b/abs/extra/mythappletrailers/mythappletrailers.install index 452fb16..602b96a 100644 --- a/abs/extra/mythappletrailers/mythappletrailers.install +++ b/abs/extra/mythappletrailers/mythappletrailers.install @@ -1,6 +1,6 @@ # arg 1: the new package version post_install() { - ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml + ln -s $MYTHHOME/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml /usr/LH/bin/gen_is_xml.py } # arg 1: the new package version @@ -11,17 +11,20 @@ post_upgrade() { then exit else - ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml + ln -s /$MYTHHOME/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml fi } # arg 1: the old package version post_remove() { rm -fr /usr/share/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaulmenu/mythappletrailer.xml - mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp /usr/LH/bin/gen_is_xml.py } +#This bit of code is used to check for MYTHHOME and set it +. /usr/MythVantage/bin/install_functions.sh +home_check + op=$1 shift $op $* -- cgit v0.12