summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-22 00:02:46 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-22 00:02:46 (GMT)
commitd6600740d35ce7e19f4a2a5b713614bf963780be (patch)
treec89035fddb0dc4d1f17179348ffaf2b670bbd689 /abs
parentd3aafa56b05330bf60d7f029096f5a5f385248a5 (diff)
downloadlinhes_pkgbuild-d6600740d35ce7e19f4a2a5b713614bf963780be.zip
linhes_pkgbuild-d6600740d35ce7e19f4a2a5b713614bf963780be.tar.gz
linhes_pkgbuild-d6600740d35ce7e19f4a2a5b713614bf963780be.tar.bz2
huludesktop: now uses gen_is_xml.py
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/huludesktop/PKGBUILD6
-rw-r--r--abs/extra/huludesktop/huludesktop.install19
2 files changed, 7 insertions, 18 deletions
diff --git a/abs/extra/huludesktop/PKGBUILD b/abs/extra/huludesktop/PKGBUILD
index 6bb69da..15c45b5 100644
--- a/abs/extra/huludesktop/PKGBUILD
+++ b/abs/extra/huludesktop/PKGBUILD
@@ -2,11 +2,11 @@ pkgname=huludesktop
pkgver=0.2
pkgrel=5
pkgdesc="Hulu Desktop for Linux"
-arch=(i686)
+arch=(i686 'x86_64')
url="http://www.hulu.com/labs/hulu-desktop-linux"
license=('unknown')
makedepends=('deb2targz')
-depends=('glib2' 'gtk2' 'lirc' 'flashplugin' 'linhes-scripts>=7-29')
+depends=('glib2' 'gtk2' 'lirc' 'flashplugin' 'linhes-scripts>=7-29' 'huludesktop_is.conf')
backup=('home/mythtv/.huludesktop')
install=huludesktop.install
options=('')
@@ -20,6 +20,8 @@ build() {
mkdir -p $pkgdir/usr/LH/bin
cp huludesktop $pkgdir/home/mythtv/.huludesktop
install -D -m755 huludesktop.sh ${pkgdir}/usr/LH/bin
+ #add in file for gen_is.xml
+ install -D -m0744 ${srcdir}/huludesktop_is.conf ${pkgdir}/etc/gen_is_xml.d/huludesktop_is.conf
}
md5sums=('d9b27d1837ab86526100964e80c3cdd1'
'935d923b90abaa4b1838a5e6b23e704e'
diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install
index 33d3d3c..360bb4e 100644
--- a/abs/extra/huludesktop/huludesktop.install
+++ b/abs/extra/huludesktop/huludesktop.install
@@ -1,28 +1,15 @@
# 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 "<!--#Hulu-->" >> /tmp/is.xml.tmp
- echo " <button>" >> /tmp/is.xml.tmp
- echo " <type>STREAM</type>" >> /tmp/is.xml.tmp
- echo " <text>Hulu Desktop</text>" >> /tmp/is.xml.tmp
- echo " <action>EXEC huludesktop.sh</action>" >> /tmp/is.xml.tmp
- echo " </button>" >> /tmp/is.xml.tmp
- echo "<!--#Hulu-->" >> /tmp/is.xml.tmp
- echo "" >> /tmp/is.xml.tmp
- echo "</mythmenu>" >> /tmp/is.xml.tmp
- mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml
+ gen_is_xml.py
chown mythtv.mythtv /home/mythtv/.huludesktop
}
# arg 1: the new package version
# arg 2: the old package version
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 '/\#Hulu/,/\#Hulu/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml
+ gen_is_xml.py
}
op=$1