diff options
author | Cecil <knoppmyth@gmail.com> | 2012-02-27 04:07:14 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2012-02-27 04:07:14 (GMT) |
commit | 1d4780e207e2271278a6ba3d48185c80c91bed66 (patch) | |
tree | 6d0b8e31b904d65aa376d0f463db99f6525b0c7f /abs/extra/huludesktop | |
parent | 363bb14d456851179463740e07f48b0be0de300d (diff) | |
download | linhes_pkgbuild-1d4780e207e2271278a6ba3d48185c80c91bed66.zip linhes_pkgbuild-1d4780e207e2271278a6ba3d48185c80c91bed66.tar.gz linhes_pkgbuild-1d4780e207e2271278a6ba3d48185c80c91bed66.tar.bz2 |
huludesktop:Fixes entry in menu.
Diffstat (limited to 'abs/extra/huludesktop')
-rw-r--r-- | abs/extra/huludesktop/PKGBUILD | 2 | ||||
-rw-r--r-- | abs/extra/huludesktop/huludesktop.install | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/abs/extra/huludesktop/PKGBUILD b/abs/extra/huludesktop/PKGBUILD index d7b4dd8..0eec9b1 100644 --- a/abs/extra/huludesktop/PKGBUILD +++ b/abs/extra/huludesktop/PKGBUILD @@ -1,6 +1,6 @@ pkgname=huludesktop pkgver=0.1 -pkgrel=6 +pkgrel=9 pkgdesc="Hulu Desktop for Linux" arch=(i686) url="http://www.hulu.com/labs/hulu-desktop-linux" diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install index 271c5a1..d2f72a7 100644 --- a/abs/extra/huludesktop/huludesktop.install +++ b/abs/extra/huludesktop/huludesktop.install @@ -1,6 +1,6 @@ # arg 1: the new package version post_install() { - mv /usr/share/mythtv/is.xml /tmp + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp echo "<!--#Hulu-->" >> /tmp/is.xml.tmp echo " <button>" >> /tmp/is.xml.tmp @@ -11,14 +11,17 @@ post_install() { echo "<!--#Hulu-->" >> /tmp/is.xml.tmp echo "" >> /tmp/is.xml.tmp echo "</mythmenu>" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml + mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml } # arg 1: the new package version # arg 2: the old package version +post_upgrade() { + post_remove $1 + post_install $1 +} post_remove() { - rm -fr /usr/share/mythtv/appletrailer.xml - mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp - sed -e '/\#Hulu/,/\#Hulu/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp + sed -e '/\#Hulu/,/\#Hulu/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml } op=$1 |