From dc5579bd32a82a67ad10e66392bea84299d75e44 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 30 Aug 2012 19:29:08 -0500
Subject: huludesktop:  remove references to /home/mythtv

---
 abs/extra/huludesktop/PKGBUILD            | 9 +++++----
 abs/extra/huludesktop/huludesktop.install | 4 +++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/abs/extra/huludesktop/PKGBUILD b/abs/extra/huludesktop/PKGBUILD
index 24da2d3..d47f165 100644
--- a/abs/extra/huludesktop/PKGBUILD
+++ b/abs/extra/huludesktop/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=huludesktop
 pkgver=0.2
-pkgrel=5
+pkgrel=6
 pkgdesc="Hulu Desktop for Linux"
 arch=(i686 'x86_64')
 url="http://www.hulu.com/labs/hulu-desktop-linux"
@@ -11,14 +11,15 @@ backup=('home/mythtv/.huludesktop')
 install=huludesktop.install
 options=('')
 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 
diff --git a/abs/extra/huludesktop/huludesktop.install b/abs/extra/huludesktop/huludesktop.install
index 360bb4e..e567a48 100644
--- a/abs/extra/huludesktop/huludesktop.install
+++ b/abs/extra/huludesktop/huludesktop.install
@@ -1,7 +1,7 @@
 # arg 1:  the new package version
 post_install() {
   gen_is_xml.py
-  chown mythtv.mythtv /home/mythtv/.huludesktop
+  chown mythtv.mythtv $MYTHHOME/.huludesktop
 }
 # arg 1:  the new package version
 # arg 2:  the old package version
@@ -11,6 +11,8 @@ post_upgrade() {
 post_remove() {
     gen_is_xml.py
 }
+. /usr/MythVantage/bin/install_functions.sh
+home_check
 
 op=$1
 shift
-- 
cgit v0.12