From 76a6d7de125a0201d93ae90a33205533d66a93ee Mon Sep 17 00:00:00 2001 From: Cecil <knoppmyth@gmail.com> Date: Sun, 19 Feb 2012 01:28:36 -0800 Subject: mythtv:Bumped to latest (post 0.24.2). Corrects media libray if XBMC is installed so the user doesn't have to. --- abs/core/mythtv/stable-0.24/mythtv/PKGBUILD | 2 +- abs/core/mythtv/stable-0.24/mythtv/mythtv.install | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD index 223c827..e9d9a12 100755 --- a/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD +++ b/abs/core/mythtv/stable-0.24/mythtv/PKGBUILD @@ -6,7 +6,7 @@ pkgname=mythtv pkgver=0.24 -pkgrel=29 +pkgrel=30 pkgdesc="A Homebrew PVR project" arch=('i686' 'x86_64') url="http://www.mythtv.org/" diff --git a/abs/core/mythtv/stable-0.24/mythtv/mythtv.install b/abs/core/mythtv/stable-0.24/mythtv/mythtv.install index 0524f86..3f2e304 100755 --- a/abs/core/mythtv/stable-0.24/mythtv/mythtv.install +++ b/abs/core/mythtv/stable-0.24/mythtv/mythtv.install @@ -33,6 +33,22 @@ post_upgrade() { else mv /usr/share/mythtv/themes/defaultmenu/is.xml.pre /usr/share/mythtv/themes/defaultmenu/is.xml fi + pacxmbc=`pacman -Q xbmc` + if [ -z "$pacxbmc" ] + then + mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp + grep -v -e /mythmenu /tmp/library.xml > /tmp/library.xml.tmp + echo "<!--#XBMC-->" >> /tmp/library.xml.tmp + echo " <button>" >> /tmp/library.xml.tmp + echo " <type>MENU_XBMC</type>" >> /tmp/library.xml.tmp + echo " <text>Launch XBMC</text>" >> /tmp/library.xml.tmp + echo " <action>EXEC /usr/bin/xbmc</action>" >> /tmp/library.xml.tmp + echo " </button>" >> /tmp/library.xml.tmp + echo "<!--#XBMC-->" >> /tmp/library.xml.tmp + echo "" >> /tmp/library.xml.tmp + echo "</mythmenu>" >> /tmp/library.xml.tmp + mv /tmp/library.xml.tmp /usr/share/mythtv/themes/defaultmenu/library.xml + fi } -- cgit v0.12