summaryrefslogtreecommitdiffstats
path: root/abs/core/linhes-theme/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-11-19 02:09:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-11-19 02:09:27 (GMT)
commit02f95477101b1afb1b9d1f54c3999d58eca41b16 (patch)
tree280be4346fb8a10d8bbb0c92f6550fa54357eb29 /abs/core/linhes-theme/PKGBUILD
parent9bba98c7fd7dcefe263b12eea84c7a5789d3d1b9 (diff)
downloadlinhes_pkgbuild-02f95477101b1afb1b9d1f54c3999d58eca41b16.zip
linhes_pkgbuild-02f95477101b1afb1b9d1f54c3999d58eca41b16.tar.gz
linhes_pkgbuild-02f95477101b1afb1b9d1f54c3999d58eca41b16.tar.bz2
linhes-theme: New default LinHES MythTV theme
linhes-theme-old: still around just in case but not built.
Diffstat (limited to 'abs/core/linhes-theme/PKGBUILD')
-rw-r--r--abs/core/linhes-theme/PKGBUILD58
1 files changed, 47 insertions, 11 deletions
diff --git a/abs/core/linhes-theme/PKGBUILD b/abs/core/linhes-theme/PKGBUILD
index 75d2157..4424d21 100644
--- a/abs/core/linhes-theme/PKGBUILD
+++ b/abs/core/linhes-theme/PKGBUILD
@@ -1,18 +1,54 @@
-# $Id: PKGBUILD 5936 2008-07-21 20:24:16Z thomas $
-# Maintainer: Cecil Watson<knoppmyth@gmail.com>
-
pkgname=linhes-theme
-pkgver=1.4
-pkgrel=4
-pkgdesc="Default LinHES theme."
+pkgver=8.1
+pkgrel=1
+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')
+
+#The LinHES theme is based on TintedGlass by Harley Peters
+source=("git://github.com/MythTV-Themes/TintedGlass.git"
+ `echo ${patches[@]:0}` 'themeinfo.xml'
+ 'background.png' 'qt-background.png')
+
package() {
- cd $srcdir/
- cp -a $startdir/LinHES $srcdir/
- mkdir -p $pkgdir/usr/share/mythtv/themes
- cp -a LinHES $pkgdir/usr/share/mythtv/themes
+ 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 themeinfo.xml and adding backgrounds for LinHES"
+ rsync -pL $srcdir/themeinfo.xml $pkgdir/$THEMEROOT/LinHES/
+ rm -r $pkgdir/$THEMEROOT/LinHES/images/backgrounds/*
+ rsync -pL $srcdir/*background.png $pkgdir/$THEMEROOT/LinHES/images/backgrounds/
+
+ 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=()
+
+md5sums=('SKIP'
+ '9c2fc68864cbedb6e449056972b457aa'
+ '15b4462932b7be0e56b2e69e0214823a'
+ 'fce30678cb5903aada8466ce7004abea'
+ '7d7bc458a8f4af408700609f3e1f412e'
+ 'cbe5f663ebb5d51abe811f81dafec303'
+ '12d26a786fde397348653128a6d7676a')