# Maintainer: Jams
pkgname=mythinstall
pkgver=2
pkgrel=26
pkgdesc="LinHES installer/systemconfig GUI."
arch=i686
depends=()
makedepends=('mythtv>=0.22')
source=('install-ui.xml')

build() {

#   It is assumed that you have built the mythtv package in the same 
#   LinHES-PKGBUILD area.
    cd $startdir
    ./checkout_MythVantage.sh || exit 1
    cd -
    #install -D MythVantage-app/mythinstall/install-ui.xml $pkgdir/usr/share/mythtv/themes/default/install-ui.xml
    install -D $srcdir/install-ui.xml $pkgdir/usr/share/mythtv/themes/default/install-ui.xml
    MVBINDIR=$startdir/pkg/usr/MythVantage/bin
    mkdir -p $MVBINDIR
    install -m 0755 $startdir/mythinstall.bin $MVBINDIR/MythVantage
    cd $MVBINDIR
    ln -s MythVantage mythvantage
    ln -s MythVantage mythinstall
    cd -

}
md5sums=('dde64a79c09ff169a5c363f77ffb68c2')