pkgname=linhes-theme pkgver=9.0.0 pkgrel=6 pkgdesc="Default LinHES MythTV theme" arch=('x86_64') license=('GPL2') url="http://linhes.org/" makedepends=('git' 'rsync') patches=('readme.txt.patch' 'osd.xml.patch' 'base.xml.patch' 'browser-ui.xml.patch' 'config-ui.xml.patch' 'controls-ui.xml.patch' 'menu-ui-vert.xml.patch' 'music-base.xml.patch' 'music-ui.xml.patch' 'musicsettings-ui.xml.patch' 'mytharchive-ui.xml.patch' 'mythburn-ui.xml.patch' 'mythnative-ui.xml.patch' 'notification-ui.xml.patch' 'qtlook.txt.patch' 'recordings-ui.xml.patch' 'schedule-ui.xml.patch' 'settings-ui.xml.patch' 'status-ui.xml.patch' 'stream-ui.xml.patch' 'video-ui.xml.patch' 'weather-ui.xml.patch') #The LinHES theme is based on TintedGlass 4.56 by Harley Peters source=(`echo ${patches[@]:0}` 'themeinfo.xml' 'install-ui.xml' 'osd_subtitle.xml' 'lights_bud_background.png' 'preview.png' 'blank_coverart.png' 'gg-left-arrow-large.png' 'gg-right-arrow-large.png' 'checkmark.png' 'error.png' 'gears.png' 'question.png' 'warning.png' 'image-ui.xml' 'standardsetting-ui.xml' 'LHLogo.png' 'LHLogoAndText.png') install=$pkgname.install sha256sums=('30aa74482dfa47bb394e7926f36271ed14b43872c582b283c63fb10c399309ee' '1eb1446ac18a72bb7d641a7565a52bc7d9f26f534e153e2d065264067088b792' '603ea611c81a61114999616e3b16877d17fde882fbaf992556ac376f68b09990' '1cb0b64ea18c1e54e3cd8c56e9460f73eb8b26dfefc27c7e0bba642b1fed11cd' 'd799134e6c06ed6039bbae71d50edb83e7fbc4a420700a2028ec90562333d812' 'acb2d10e897c5e05ed0069e737a272632ca7370f958968556d8d1108c8c17239' '431a9da8a810b38d2c623d0d01247c360840ab55b8b0c8ab87a4c033c322cb06' '28bc7e8c94454e86d3dcc9cb1e1e3712940de0a92183b8d3929b2895d6c35ff8' 'b5a5653f60cff0368d1ebc5571128baa005f649a682fb40ff72669ad692e49c0' 'a363df51ae3b60d2cd4f8571d1cadcb4d4c9839dde4f869f224152a152afde12' '38601942d189519bbe9c9354a00d7f94bd1477c8e7aff6540dbbf376a20d845e' 'fbed102b47c6255be5f90adab55a087daa8d014dca09eda1eacc401eab21cdb1' 'd3f1135a069029419b14e5fdcf6e6732136bdb4779f4e5bac1f2343aa1a5d8d5' 'a2e3bb5e3114299f4f539e62593d1d1c455ceae1d779a65f33569952ad28db3f' 'e99f9c643b787b7d0f5d95ec48b9c2fe8ba746a68f557583af31bdafcd9b7577' 'f2f92ad1eb74a18a85c5d37a6b3f4c13865a03d2ceb633b367f33b56c9018832' '6dac358eeaa1448b40ae7807aa3cbebb81bf2b13f3a9e848b0f2a9000ba69937' 'e6c6a115c6d45290aa9cfea1a09ba4abd3d15483412150746997cb786dd96ce1' 'de53064496b5e1bd7b9b0a0a5b346c0e0263efbfb21f768d6f1ec736a6b45f41' 'bc9a197b2144e88dc2a6477ac28a11da39c7cc6df987b318e39247ffa9456fb8' '499e8bc9cc1ca2ce2013117637c0b15ec722ebb3430220378182a59b728ea4f1' '65a28a164a3c86a88cc17e1960051722b96ae5631286afd02031ee850ae3e108' '2f969fb3066e9bd4ef1c6b78a690badfeea8b44132470e90d44d0465dee2c275' 'f9e621c2b66749818c41248529dd05361b0b1917039c6b4c55da710e85cc727d' 'a4ce13418478d06eabf1def8971c91bdae0441c42a26a8d9ff5a6dbae4bf1976' '70c3e66b8ef5b3f7b51f459c8411cdb2a4f74e911cdc06f3ec78d9953e9f86d1' 'b81b03f6cbe4f842f8b5113d248c83851653e79b669f2702db557d00ab8334fc' 'c33c83a8ea4d1f7354f7a135bfb0742fd0e0367f32e63c7ca7abb2ec03a43b06' '9464d2a169ebf71ca658e35675833ab23ca573a22596b6a633bf08134c9b2c06' '6c7bb8e08d23c3c386e2a3905133cb258a746aa7dad147c8494676b17a70c4df' 'a5153a8248c89e072fd2fd1862b52de6e2eda171aae0ba6872fc56ee2c12f954' 'a895cf07af9662875926a574863ce12a47d34dbf87c178819b1b08cd90093abd' '6f5644916140cc5d74816b09a9eec78717c1479cb5255762c6af74ad54828a88' '400cca5039c70ad98d87cb96f6e154b5faf3c1ce7510960e7bd38a2ac81ea039' '0a2bb7bb3dd513c97a3760e1be80b23890689551b142fbaa7ff5d9e04f1784d5' '7661214d94b52f90e6b536d3144f2b6287a05b30d17ca3c9414b0dcebaaf9bae' '71dce90b226e7c5103babab959e1f81f8622acb37231a610f38848082321965d' '366782cb94bb8dafc8f7d65cc6b50739b98b16a2bfd9b8928d7f51c86cc23478' 'a74cee81862f10ee30077858fd3888a6327fdbc939cadadfe57faa5a12d10dbb') prepare() { _gitroot="https://github.com/MythTV-Themes/TintedGlass.git" _gitname="TintedGlass" _gitbranch="fixes/32" 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/* rm -r $pkgdir/$THEMEROOT/LinHES/osd.xml.alt rsync -pL $srcdir/lights_bud_background.png $pkgdir/$THEMEROOT/LinHES/images/backgrounds/background.png rsync -pL $srcdir/blank_coverart.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/gg-left-arrow-large.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/gg-right-arrow-large.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/checkmark.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/error.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/gears.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/question.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/warning.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/preview.png $pkgdir/$THEMEROOT/LinHES/ rsync -pL $srcdir/LHLogo.png $pkgdir/$THEMEROOT/LinHES/images/ rsync -pL $srcdir/LHLogoAndText.png $pkgdir/$THEMEROOT/LinHES/images/ #remove old htmls directory rm -r $pkgdir/$THEMEROOT/LinHES/htmls #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 -r sed -i "s/\#d9d900/\#ebb81c/g" #darkyellow grep -lr '#CCCC29' $pkgdir/$THEMEROOT/LinHES/ | xargs -r sed -i "s/\#CCCC29/\#ebb81c/g" #blue grep -lr '#3a9ade' $pkgdir/$THEMEROOT/LinHES/ | xargs -r sed -i "s/\#3a9ade/\#0072bc/g" msg "Modifying fonts to Overlock" grep -lr 'DejaVu Sans' $pkgdir/$THEMEROOT/LinHES/ | xargs -r sed -i "s/\DejaVu Sans/\Overlock/g" msg "Updating themeinfo.xml version number" sed -i "s/MAJ_VER/${pkgver//.}/" $pkgdir/$THEMEROOT/LinHES/themeinfo.xml sed -i "s/MIN_VER/${pkgrel}/" $pkgdir/$THEMEROOT/LinHES/themeinfo.xml }