diff options
-rw-r--r-- | abs/extra-testing/mythappletrailers/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/extra-testing/mythappletrailers/mythappletrailers.install | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/abs/extra-testing/mythappletrailers/PKGBUILD b/abs/extra-testing/mythappletrailers/PKGBUILD index 6541b25..ec4d701 100644 --- a/abs/extra-testing/mythappletrailers/PKGBUILD +++ b/abs/extra-testing/mythappletrailers/PKGBUILD @@ -3,7 +3,7 @@ pkgname=mythappletrailers pkgver=0.04.3 -pkgrel=10 +pkgrel=12 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." arch=('i686' 'x86_64') license=('GPL2') diff --git a/abs/extra-testing/mythappletrailers/mythappletrailers.install b/abs/extra-testing/mythappletrailers/mythappletrailers.install index 3c874f8..133390c 100644 --- a/abs/extra-testing/mythappletrailers/mythappletrailers.install +++ b/abs/extra-testing/mythappletrailers/mythappletrailers.install @@ -5,11 +5,17 @@ post_install() { # arg 1: the new package version # arg 2: the old package version post_upgrade() { + if [ -e /usr/share/mythtv/appletrailer.xml ] + then + exit + else ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/appletrailer.xml + fi } # arg 1: the old package version post_remove() { + rm -fr /usr/share/mythtv/appletrailer.xml } op=$1 |