pkgname=linhes-theme pkgver=8.1 pkgrel=21 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' 'music-ui.xml.patch' 'menu-ui-vert.xml.patch' 'recordings-ui.xml.patch' 'qtlook.txt.patch') #The LinHES theme is based on TintedGlass 4.39 by Harley Peters source=("git+https://github.com/MythTV-Themes/TintedGlass.git#branch=fixes/0.27" `echo ${patches[@]:0}` 'themeinfo.xml' 'install-ui.xml' 'background.png' 'preview.png' 'tux_thoughts.png' 'LHLogoAndText.png' 'game-ui.xml' 'mytharchive-ui.xml' 'mythburn-ui.xml' 'mythnative-ui.xml') 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" } md5sums=('SKIP' '95478bd9bab15e9e4365c1048757c225' 'ed4f8baf431e20babc345e4e2602426f' 'f52ad93730ae53ea0e1ac5d3c599133c' '90476c9d03c734a4177954b5b0a4e864' 'ec11d601d47cd4b2954e1609262a571b' '4ad8bc893412eeeb890f0b1f1f1bd541' '9fe3371a8b964a7028126405cfaa330b' '7d7bc458a8f4af408700609f3e1f412e' 'a0201e0aa1608eeab27ee754e4d2c1de' '12d26a786fde397348653128a6d7676a' '4b1c27297bb5f8d9d7bbaf72b35130b5' '2bd09b8049aaf5ba21db5baf3a0ce077' '09ad14842f828b7a8d24070ec8214fe5' '8933e2c7c3569091bebc9d086e574ffe' '8151dcda813a9a01b989d45f3d17eedd' 'a0f423ab4089a2e8d65def7777169cd4' '8bd8e94068b03fea2138423acb170559')