pkgname=e16-myth-settings
pkgver=1.0
pkgrel=38
pkgdesc="Default settings for e16 + tilda"
depends=()
source=()
arch=('i686')
install=e16.install
build() {
	mkdir -p $startdir/pkg/data/home/mythtv/
	mkdir -p $startdir/pkg/root
        rsync -a --exclude=.svn $startdir/e16 $startdir/pkg/data/home/mythtv
	#cp -rp  $startdir/e16 $startdir/pkg/data/home/mythtv

        rsync -a --exclude=.svn $startdir/e16 $startdir/pkg/root

        mkdir -p $startdir/pkg/data/home/mythtv/.tilda
        rsync -a --exclude=.svn $startdir/tilda/*	$startdir/pkg/data/home/mythtv/.tilda/
        cp -rp $startdir/pkg/data/home/mythtv/.tilda $startdir/pkg/root/


        chown -R mythtv:mythtv $startdir/pkg/data/home/mythtv
	chmod 755 -R  $startdir/pkg/data/home/mythtv
	cd $startdir/pkg/data/home/mythtv
	mv e16 .e16
	cd $startdir/pkg/root
	mv e16 .e16
  	echo "all done"


}