From d3aafa56b05330bf60d7f029096f5a5f385248a5 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Tue, 21 Aug 2012 19:02:05 -0500 Subject: web-on-linhes: now uses gen_is_xml.py --- abs/extra/web-on-linhes/PKGBUILD | 11 ++- abs/extra/web-on-linhes/web-on-linhes.install | 123 +------------------------- 2 files changed, 10 insertions(+), 124 deletions(-) diff --git a/abs/extra/web-on-linhes/PKGBUILD b/abs/extra/web-on-linhes/PKGBUILD index 2c68542..ec7965c 100644 --- a/abs/extra/web-on-linhes/PKGBUILD +++ b/abs/extra/web-on-linhes/PKGBUILD @@ -3,18 +3,21 @@ pkgname=web-on-linhes pkgver=1.00.0 -pkgrel=4 +pkgrel=5 pkgdesc="Added multiple websites with 10' UIs to Play Online Streams." arch=('i686' 'x86_64') license=('GPL2') url="http://www.linhes.org/" -depends=('chromium' 'flashplugin' 'linhes-scripts>=7-29') +depends=('chromium' 'flashplugin' 'linhes-scripts>=7-29' ) install=web-on-linhes.install -source=('web-on-linhes.sh') +source=('web-on-linhes.sh' 'web-on-linhes_is.conf') build() { cd ${srcdir} install -d ${pkgdir}/usr/LH/bin install -D -m755 *.sh ${pkgdir}/usr/LH/bin + #add in file for gen_is.xml + install -D -m0744 ${srcdir}/web-on-linhes_is.conf ${pkgdir}/etc/gen_is_xml.d/web-on-linhes_is.conf } -md5sums=('bf15498dcbdc3852aca9cccb0aacd913') +md5sums=('bf15498dcbdc3852aca9cccb0aacd913' + 'c342f02c88728b227f02018658d6ee53') diff --git a/abs/extra/web-on-linhes/web-on-linhes.install b/abs/extra/web-on-linhes/web-on-linhes.install index 15a5056..93f64fa 100644 --- a/abs/extra/web-on-linhes/web-on-linhes.install +++ b/abs/extra/web-on-linhes/web-on-linhes.install @@ -1,129 +1,12 @@ # arg 1: the new package version post_install() { - mv /usr/share/mythtv/themes/defaultmenu/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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml + gen_is_xml.py } post_upgrade() { - post_remove $1 - post_install $1 + gen_is_xml.py } post_remove() { - mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp - sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml + gen_is_xml.py } op=$1 -- cgit v0.12