From 420f4c0c8157237d3b4b682a27db498b80c9e0f3 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 13 Nov 2009 01:21:46 -0600
Subject: mythinstall.22: first check in of MythVantage against .22.

---
 abs/core-testing/mythinstall-22/PKGBUILD           | 23 ++++++++++
 .../mythinstall-22/checkout_MythVantage.sh         | 49 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 abs/core-testing/mythinstall-22/PKGBUILD
 create mode 100755 abs/core-testing/mythinstall-22/checkout_MythVantage.sh

diff --git a/abs/core-testing/mythinstall-22/PKGBUILD b/abs/core-testing/mythinstall-22/PKGBUILD
new file mode 100644
index 0000000..89cca2f
--- /dev/null
+++ b/abs/core-testing/mythinstall-22/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Jams
+pkgname=mythinstall-22
+pkgver=2
+pkgrel=1
+pkgdesc="LinHES installer/systemconfig GUI."
+arch=i686
+depends=()
+makedepends=(mythtv-release-fixes-22)
+
+source=(mythinstall.bin)
+
+build() {
+
+#   It is assumed that you have built the mythtv package in the same 
+#   LinHES-PKGBUILD area.
+    MVBINDIR=$startdir/pkg/usr/MythVantage/bin
+    mkdir -p $MVBINDIR
+    install -m 0755 mythinstall.bin $MVBINDIR/MythVantage
+    cd $MVBINDIR
+    ln -s MythVantage mythvantage
+    ln -s MythVantage mythinstall
+    cd -
+}
diff --git a/abs/core-testing/mythinstall-22/checkout_MythVantage.sh b/abs/core-testing/mythinstall-22/checkout_MythVantage.sh
new file mode 100755
index 0000000..82002c8
--- /dev/null
+++ b/abs/core-testing/mythinstall-22/checkout_MythVantage.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+MYDIR=`pwd`
+MYTHPATH="\/data\/LinHES-PKGBUILD\/abs\/core-testing\/mythtv\/stable.22\/mythtv\/src\/mythtv"
+
+function setup_links {
+rm mythinstall.bin
+rm mythbeselect.bin
+ln -s  $MYDIR/src/MythVantage-app/mythinstall/mythinstall ./mythinstall.bin
+ln -s  $MYDIR/src/MythVantage-app/mythbeselect/mythbeselect ./mythbeselect.bin
+}
+
+function dl_repo {
+mkdir src
+cd src
+if [ ! -d MythVantage-app ]
+then
+    git clone http://mythvantage.com/MythVantage-app.git/
+    cd MythVantage-app
+    git checkout --track -b  LinHES origin/LinHES
+    cd $MYDIR
+    setup_links
+    cd -
+else
+    echo "updating exisiting tree"
+    cd MythVantage-app
+    git pull
+    git checkout master
+    git merge
+    cd -
+fi
+
+cd MythVantage-app
+git checkout master
+#git checkout origin/LinHES
+
+}
+
+dl_repo
+sed -i "s/^MYTHPATH.*$/MYTHPATH\=\"$MYTHPATH\"/g"  $MYDIR/src/MythVantage-app/mythinstall/mythinstall.pro
+sed -i "s/#define __MVAPP__/\/\/#define __MVAPP__/g" $MYDIR/src/MythVantage-app/mythinstall/mv_common.h
+sed -i "s/mythvantage/LinHES/g" $MYDIR/src/MythVantage-app/mythinstall/mv_common.h
+
+echo "INCLUDEPATH += /usr/include/mythtv" >> $MYDIR/src/MythVantage-app/mythbeselect/mythberestart.pro
+echo "INCLUDEPATH += /usr/include/mythtv" >> $MYDIR/src/MythVantage-app/mythinstall/mythinstall.pro
+cd $MYDIR/src/MythVantage-app/mythinstall && qmake
+make || exit 1
+#cd $MYDIR/src/MythVantage-app/mythbeselect && qmake
+#make ||exit 1
+
-- 
cgit v0.12

