From cb06c4d0a71b023b0664126b6bf375dfb768ea23 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Wed, 4 Feb 2009 22:59:29 -0800 Subject: Added mythvodka.install to place into menu. --- abs/extra-testing/mythvodka/PKGBUILD | 3 +- abs/extra-testing/mythvodka/mythvodka.install | 46 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 abs/extra-testing/mythvodka/mythvodka.install diff --git a/abs/extra-testing/mythvodka/PKGBUILD b/abs/extra-testing/mythvodka/PKGBUILD index 2dbb9ec..ed7def1 100644 --- a/abs/extra-testing/mythvodka/PKGBUILD +++ b/abs/extra-testing/mythvodka/PKGBUILD @@ -3,12 +3,13 @@ pkgname=mythvodka pkgver=0.7 -pkgrel=4 +pkgrel=5 pkgdesc="MythVodka (Video On Demand Killer App) is a plugin for MythTV allowing streaming of BBC iPlayer, Hulu, HTTP and NZB content." arch=('i686' 'x86_64') license=('GPL2') url="http://code.google.com/p/mythvodka/" depends=('rtmpdump') +install=mythvodka.install source=('http://mythvodka.googlecode.com/files/mythvodka.07.tar.gz' 'mythvodka.diff' 'hulu_grabber.sh') build() { diff --git a/abs/extra-testing/mythvodka/mythvodka.install b/abs/extra-testing/mythvodka/mythvodka.install new file mode 100644 index 0000000..796e603 --- /dev/null +++ b/abs/extra-testing/mythvodka/mythvodka.install @@ -0,0 +1,46 @@ +# arg 1: the new package version +post_install() { + 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 + + mv /usr/share/mythtv/media_settings.xml /tmp + grep -v -e /mythmenu /tmp/media_settings.xml > /tmp/ms.xml.tmp + echo "" >> /tmp/ms.xml.tmp + echo " " >> /tmp/ms.xml.tmp + echo "" >> /tmp/ms.xml.tmp + echo "" >> /tmp/ms.xml.tmp + echo "" >> /tmp/ms.xml.tmp + mv /tmp/ms.xml.tmp /usr/share/mythtv/media_settings.xml +} +# arg 1: the new package version +# arg 2: the old package version +#post_upgrade() { +#} + +# arg 1: the old package version +post_remove() { + mv /usr/share/mythtv/is.xml /tmp/is.xml.tmp + sed -e '/\#MythVodka/,/\#MythVodka/d' < /tmp/is.xml.tmp > /usr/share/mythtv/is.xml + mv /usr/share/mythtv/media_settings.xml /tmp/ms.xml.tmp + sed -e '/\#MythVodka/,/\#MythVodka/d' < /tmp/ms.xml.tmp > /usr/share/mythtv/media_settings.xml +} + +op=$1 +shift +$op $* -- cgit v0.12