summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/miro/miro.install
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-04-30 17:21:06 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-04-30 17:21:06 (GMT)
commite0366c16c6cc3833daffc4fc0c24c642bff870e2 (patch)
treeee00ff76c534a843cc0c72944cdd0364d6467535 /abs/extra-testing/miro/miro.install
parenta1e995a84b1f462b26608f12d6ff3a20031f2579 (diff)
downloadlinhes_pkgbuild-e0366c16c6cc3833daffc4fc0c24c642bff870e2.zip
linhes_pkgbuild-e0366c16c6cc3833daffc4fc0c24c642bff870e2.tar.gz
linhes_pkgbuild-e0366c16c6cc3833daffc4fc0c24c642bff870e2.tar.bz2
Latest Miro.
Diffstat (limited to 'abs/extra-testing/miro/miro.install')
-rw-r--r--abs/extra-testing/miro/miro.install43
1 files changed, 40 insertions, 3 deletions
diff --git a/abs/extra-testing/miro/miro.install b/abs/extra-testing/miro/miro.install
index 380c860..9294898 100644
--- a/abs/extra-testing/miro/miro.install
+++ b/abs/extra-testing/miro/miro.install
@@ -1,13 +1,50 @@
+# 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 "<!--#Miro-->" >> /tmp/is.xml.tmp
+ echo " <button>" >> /tmp/is.xml.tmp
+ echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
+ echo " <text>Miro Player</text>" >> /tmp/is.xml.tmp
+ echo " <action>EXEC /usr/bin/miro</action>" >> /tmp/is.xml.tmp
+ echo " </button>" >> /tmp/is.xml.tmp
+ echo "<!--#Miro-->" >> /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
+ if [ -d /myth/democracy ]
+ then
+ ln -s /myth/democracy /home/mythtv/.miro
+ ln -s /myth/miro/Movies /myth/video/Miro
+ exit 1
+ else
+ if [ -d /myth/miro ]
+ then
+ ln -s /myth/miro /home/mythtv/.miro
+ ln -s /myth/miro/Movies /myth/video/Miro
+ exit 1
+ else
+ if [ ! -d /myth/miro -o /myth/democracy ]
+ then
+ mkdir -p /myth/miro/Movies
+ ln -s /myth/miro /home/mythtv/.miro
+ ln -s /myth/miro/Movies /home/mythtv/Movies
+ ln -s /myth/miro/Movies /myth/video/Miro
+ fi
+ fi
+ fi
}
post_upgrade() {
- post_install $1
+ post_instal $1
}
post_remove() {
- update-desktop-database -q
+ update-desktop-database -q
+ rm -fr /home/mythtv/.miro /myth/video/Miro /myth/miro /myth/democracy
}
-
+op=$1
+shift
+$op $*