summaryrefslogtreecommitdiffstats
path: root/abs/extra/huludesktop
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/huludesktop')
-rw-r--r--abs/extra/huludesktop/PKGBUILD20
-rw-r--r--abs/extra/huludesktop/__changelog1
-rw-r--r--abs/extra/huludesktop/huludesktop.install23
-rw-r--r--abs/extra/huludesktop/huludesktop_is.conf8
4 files changed, 27 insertions, 25 deletions
diff --git a/abs/extra/huludesktop/PKGBUILD b/abs/extra/huludesktop/PKGBUILD
index 6bb69da..d47f165 100644
--- a/abs/extra/huludesktop/PKGBUILD
+++ b/abs/extra/huludesktop/PKGBUILD
@@ -1,26 +1,30 @@
pkgname=huludesktop
pkgver=0.2
-pkgrel=5
+pkgrel=6
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' )
backup=('home/mythtv/.huludesktop')
install=huludesktop.install
options=('')
-source=('http://download.hulu.com/huludesktop_i386.deb' 'huludesktop' 'huludesktop.sh')
-
+source=('http://download.hulu.com/huludesktop_i386.deb' 'huludesktop' 'huludesktop.sh' 'huludesktop_is.conf')
+. /usr/MythVantage/bin/install_functions.sh
+home_check
build() {
cd $startdir/src
deb2targz huludesktop_i386.deb
tar -xzvf huludesktop_i386.tar.gz -C $pkgdir
- mkdir -p $pkgdir/home/mythtv
+ mkdir -p $pkgdir/$MYTHHOME
mkdir -p $pkgdir/usr/LH/bin
- cp huludesktop $pkgdir/home/mythtv/.huludesktop
+ cp huludesktop $pkgdir/$MYTHHOME/.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'
- '8f7dbf19d6168bc3a5b0c1da1c878693')
+ '8f7dbf19d6168bc3a5b0c1da1c878693'
+ '36fb8d9af1ff8a0b8634e7dbddaf975f')
diff --git a/abs/extra/huludesktop/__changelog b/abs/extra/huludesktop/__changelog
new file mode 100644
index 0000000..93ed61a
--- /dev/null
+++ b/abs/extra/huludesktop/__changelog
@@ -0,0 +1 @@
+gen_is_xml.py huludesktop_is.xml
diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install
index 33d3d3c..e567a48 100644
--- a/abs/extra/huludesktop/huludesktop.install
+++ b/abs/extra/huludesktop/huludesktop.install
@@ -1,29 +1,18 @@
# 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
- chown mythtv.mythtv /home/mythtv/.huludesktop
+ gen_is_xml.py
+ chown mythtv.mythtv $MYTHHOME/.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
}
+. /usr/MythVantage/bin/install_functions.sh
+home_check
op=$1
shift
diff --git a/abs/extra/huludesktop/huludesktop_is.conf b/abs/extra/huludesktop/huludesktop_is.conf
new file mode 100644
index 0000000..dba4076
--- /dev/null
+++ b/abs/extra/huludesktop/huludesktop_is.conf
@@ -0,0 +1,8 @@
+<!--#Hulu-->
+ <button>
+ <type>STREAM</type>
+ <text>Hulu Desktop</text>
+ <action>EXEC huludesktop.sh</action>
+ </button>
+<!--#Hulu-->
+