From 080719adc31ac11a362f14b26b1c3e55d4a32469 Mon Sep 17 00:00:00 2001 From: Cecil Date: Mon, 27 Feb 2012 16:39:22 -0800 Subject: huludesktop:Ensure .huludesktop is owned by mythtv. Runs hulu desktop from a script that also stops xscreensaver from starting. --- abs/extra/huludesktop/PKGBUILD | 13 ++++++++----- abs/extra/huludesktop/huludesktop.install | 3 ++- abs/extra/huludesktop/huludesktop.sh | 7 +++++++ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 abs/extra/huludesktop/huludesktop.sh diff --git a/abs/extra/huludesktop/PKGBUILD b/abs/extra/huludesktop/PKGBUILD index 0eec9b1..58cd1ca 100644 --- a/abs/extra/huludesktop/PKGBUILD +++ b/abs/extra/huludesktop/PKGBUILD @@ -1,22 +1,25 @@ pkgname=huludesktop -pkgver=0.1 -pkgrel=9 +pkgver=0.2 +pkgrel=3 pkgdesc="Hulu Desktop for Linux" arch=(i686) url="http://www.hulu.com/labs/hulu-desktop-linux" license=('unknown') makedepends=('deb2targz') -depends=('glib2' 'gtk2' 'lirc' 'flashplugin') +depends=('glib2' 'gtk2' 'lirc' 'flashplugin' 'linhes-scripts>=7-29') install=huludesktop.install options=('') -source=('http://download.hulu.com/huludesktop_i386.deb' 'huludesktop') +source=('http://download.hulu.com/huludesktop_i386.deb' 'huludesktop' 'huludesktop.sh') build() { cd $startdir/src deb2targz huludesktop_i386.deb tar -xzvf huludesktop_i386.tar.gz -C $pkgdir mkdir -p $pkgdir/home/mythtv + mkdir -p $pkgdir/usr/LH/bin cp huludesktop $pkgdir/home/mythtv/.huludesktop + install -D -m755 huludesktop.sh ${pkgdir}/usr/LH/bin } md5sums=('d9b27d1837ab86526100964e80c3cdd1' - 'fc6048cc2a6ee3b90808e0b757f0fc9b') + 'fc6048cc2a6ee3b90808e0b757f0fc9b' + '8f7dbf19d6168bc3a5b0c1da1c878693') diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install index d2f72a7..33d3d3c 100644 --- a/abs/extra/huludesktop/huludesktop.install +++ b/abs/extra/huludesktop/huludesktop.install @@ -6,12 +6,13 @@ post_install() { 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 + chown mythtv.mythtv /home/mythtv/.huludesktop } # arg 1: the new package version # arg 2: the old package version diff --git a/abs/extra/huludesktop/huludesktop.sh b/abs/extra/huludesktop/huludesktop.sh new file mode 100644 index 0000000..9095984 --- /dev/null +++ b/abs/extra/huludesktop/huludesktop.sh @@ -0,0 +1,7 @@ +#!/bin/sh +#Stops xscreensaver from running. +stop_xss.sh & +#Launches chromium in full screen +huludesktop +#Once done, stop stop_xss.sh +killall stop_xss.sh -- cgit v0.12