From 03016189a278df360e6830976c72f96d6d08056f Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Fri, 23 Jan 2009 16:51:21 -0800 Subject: .install will now add/remove Miro from appropriate menu on install/removal. --- abs/extra-testing/miro/PKGBUILD | 2 +- abs/extra-testing/miro/miro.install | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/abs/extra-testing/miro/PKGBUILD b/abs/extra-testing/miro/PKGBUILD index efc44b3..e653901 100644 --- a/abs/extra-testing/miro/PKGBUILD +++ b/abs/extra-testing/miro/PKGBUILD @@ -3,7 +3,7 @@ pkgname=miro pkgver=1.2.8 -pkgrel=2 +pkgrel=4 pkgdesc="The free and open source internet TV platform" arch=('i686' 'x86_64') url="http://www.getmiro.com" diff --git a/abs/extra-testing/miro/miro.install b/abs/extra-testing/miro/miro.install index f37f11d..1f1121f 100644 --- a/abs/extra-testing/miro/miro.install +++ b/abs/extra-testing/miro/miro.install @@ -1,17 +1,23 @@ +# arg 1: the new package version post_install() { - update-desktop-database -q + mv /usr/share/mythtv/is.xml /tmp + grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + mv /tmp/is.xml.tmp /usr/share/mythtv/is.xml } - -post_upgrade() { - post_install $1 -} - post_remove() { - update-desktop-database -q + mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp + sed -e '/\#Miro/,/\#Miro/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml } op=$1 shift - $op $* - -- cgit v0.12