pkgname=linhes-theme pkgver=8.2 pkgrel=5 pkgdesc="Default LinHES MythTV theme" arch=('i686' 'x86_64') license=('GPL2') url="http://linhes.org/" patches=('readme.txt.patch' 'osd.xml.patch' 'base.xml.patch' 'menu-ui-vert.xml.patch' 'qtlook.txt.patch') #The LinHES theme is based on TintedGlass 4.56 by Harley Peters source=(`echo ${patches[@]:0}` 'themeinfo.xml' 'install-ui.xml' 'background.png' 'preview.png' 'tux_thoughts.png' 'LHLogoAndText.png') prepare() { _gitroot="https://github.com/MythTV-Themes/TintedGlass.git" _gitname="TintedGlass" _gitbranch="fixes/0.27" cd $srcdir if [ -d $_gitname ] then cd $_gitname git checkout $_gitbranch git pull msg "TintedGlass local files updated." else git clone -b $_gitbranch $_gitroot msg "TintedGlass git checkout done." fi } package() { THEMEROOT=usr/share/mythtv/themes msg "Copying theme to package" mkdir -p $pkgdir/$THEMEROOT/LinHES/ rsync -arp --exclude .git* --delete-excluded $srcdir/TintedGlass/* $pkgdir/$THEMEROOT/LinHES/ msg "--------------------------applying patches------------------------------" cd $pkgdir/$THEMEROOT/LinHES/ for i in `echo ${patches[@]:0}` do echo applying $i patch -N -i ${srcdir}/$i || return 1 echo "-----------------------------" done cd $startdir msg "--------------------------done applying patches-------------------------" msg "Copy *.xml and adding backgrounds and images for LinHES" rsync -pL $srcdir/*.xml $pkgdir/$THEMEROOT/LinHES/ rm -r $pkgdir/$THEMEROOT/LinHES/images/backgrounds/* rsync -pL $srcdir/background.png $pkgdir/$THEMEROOT/LinHES/images/backgrounds/ rsync -pL $srcdir/preview.png $pkgdir/$THEMEROOT/LinHES/ #tux_thoughts.png is the thought bubble for the menu descriptions rsync -pL $srcdir/tux_thoughts.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/LHLogoAndText.png $pkgdir/$THEMEROOT/LinHES/images/ #vertical menu mv $pkgdir/$THEMEROOT/LinHES/menu-ui-vert.xml $pkgdir/$THEMEROOT/LinHES/menu-ui.xml msg "Modifying yellows and blue to LinHES yellow and blue" #yellow grep -lr '#d9d900' $pkgdir/$THEMEROOT/LinHES/ | xargs sed -i "s/\#d9d900/\#ebb81c/g" #darkyellow grep -lr '#CCCC29' $pkgdir/$THEMEROOT/LinHES/ | xargs sed -i "s/\#CCCC29/\#ebb81c/g" #blue grep -lr '#3a9ade' $pkgdir/$THEMEROOT/LinHES/ | xargs sed -i "s/\#3a9ade/\#0072bc/g" msg "Updating themeinfo.xml version number" IFS="." read -a array <<< "$pkgver" sed -i "s/MAJ_VER/${array[0]}/" $pkgdir/$THEMEROOT/LinHES/themeinfo.xml sed -i "s/MIN_VER/${array[1]}${pkgrel}/" $pkgdir/$THEMEROOT/LinHES/themeinfo.xml } md5sums=('2dca856c2a4d1f959473512c94e43b60' 'ae7e975caea816bf16eba651c8fa8e6a' '71f4fa39d7fefe5443ef0f7bd6820ccd' 'c75c83b90969fb07755062113f858e88' '9fe3371a8b964a7028126405cfaa330b' '5a8fb2a5f0e657d52be6f0a6a006ce72' 'a0201e0aa1608eeab27ee754e4d2c1de' '12d26a786fde397348653128a6d7676a' '4b1c27297bb5f8d9d7bbaf72b35130b5' '2bd09b8049aaf5ba21db5baf3a0ce077' '09ad14842f828b7a8d24070ec8214fe5')