From da699157f2c66ef4f5d51b69e980705992c582e3 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 4 Sep 2012 13:54:57 -0500
Subject: mythinstall: add logos that are to be displayed during install. new
 logos go into logo_src  then run resize_link.sh

---
 abs/core/mythinstall/PKGBUILD                 |  21 +++++++++++++++------
 abs/core/mythinstall/install-ui.xml           |  14 ++++++++++++++
 abs/core/mythinstall/logo-1.png               | Bin 0 -> 5402 bytes
 abs/core/mythinstall/logo-2.png               | Bin 0 -> 7932 bytes
 abs/core/mythinstall/logo-3.png               | Bin 0 -> 40628 bytes
 abs/core/mythinstall/logo-4.png               | Bin 0 -> 21032 bytes
 abs/core/mythinstall/logo-5.png               | Bin 0 -> 4123 bytes
 abs/core/mythinstall/logo-6.png               | Bin 0 -> 34843 bytes
 abs/core/mythinstall/logo_src/command-ir.png  | Bin 0 -> 7790 bytes
 abs/core/mythinstall/logo_src/hp_logo.png     | Bin 0 -> 11906 bytes
 abs/core/mythinstall/logo_src/mythtv.png      | Bin 0 -> 67539 bytes
 abs/core/mythinstall/logo_src/pchdtv.png      | Bin 0 -> 31710 bytes
 abs/core/mythinstall/logo_src/resize_link.sh  |  12 ++++++++++++
 abs/core/mythinstall/logo_src/simerec.png     | Bin 0 -> 6093 bytes
 abs/core/mythinstall/logo_src/supercorn-0.png | Bin 0 -> 53793 bytes
 15 files changed, 41 insertions(+), 6 deletions(-)
 create mode 100644 abs/core/mythinstall/logo-1.png
 create mode 100644 abs/core/mythinstall/logo-2.png
 create mode 100644 abs/core/mythinstall/logo-3.png
 create mode 100644 abs/core/mythinstall/logo-4.png
 create mode 100644 abs/core/mythinstall/logo-5.png
 create mode 100644 abs/core/mythinstall/logo-6.png
 create mode 100644 abs/core/mythinstall/logo_src/command-ir.png
 create mode 100644 abs/core/mythinstall/logo_src/hp_logo.png
 create mode 100644 abs/core/mythinstall/logo_src/mythtv.png
 create mode 100644 abs/core/mythinstall/logo_src/pchdtv.png
 create mode 100644 abs/core/mythinstall/logo_src/resize_link.sh
 create mode 100644 abs/core/mythinstall/logo_src/simerec.png
 create mode 100644 abs/core/mythinstall/logo_src/supercorn-0.png

diff --git a/abs/core/mythinstall/PKGBUILD b/abs/core/mythinstall/PKGBUILD
index d031119..a3304ef 100644
--- a/abs/core/mythinstall/PKGBUILD
+++ b/abs/core/mythinstall/PKGBUILD
@@ -1,19 +1,17 @@
 # Maintainer: Jams
 pkgname=mythinstall
 pkgver=3
-pkgrel=40
+pkgrel=44
 pkgdesc="LinHES installer/systemconfig GUI."
 arch=('i686'  'x86_64')
 depends=('mythtv>=0.25')
 makedepends=('mythtv>=0.25')
-source=('install-ui.xml')
+logofiles=`ls logo*.png`
+source=('install-ui.xml' $logofiles)
 
 build() {
-
 #   It is assumed that you have built the mythtv package in the same 
-#   LinHES-PKGBUILD area.
     cd $startdir
-#    ./checkout_MythVantage.sh || exit 1
     cd -
     #install -D MythVantage-app/mythinstall/install-ui.xml $pkgdir/usr/share/mythtv/themes/default/install-ui.xml
     install -D $srcdir/install-ui.xml $pkgdir/usr/share/mythtv/themes/default/install-ui.xml
@@ -24,6 +22,17 @@ build() {
     ln -s MythVantage mythvantage
     ln -s MythVantage mythinstall
     cd -
+    
+    for i in $logofiles
+    do
+       install -D -m 0755 $startdir/$i $startdir/pkg/usr/MythVantage/logos/$i
+    done
 
 }
-md5sums=('dde64a79c09ff169a5c363f77ffb68c2')
+md5sums=('27e9b65d16cd2757d7f3ae47abb24ea8'
+         '137ba1bf74cc13feb1ca0038dc5ed5fc'
+         '1d5064ac3c871f0aa895c95a71ba5c97'
+         'b4f9b52cdd2936e0a8dd4e3dd7cac344'
+         '4e748680e67ff8bd0614fd5c63abda9c'
+         '72fc7d8147c08336dd1064f9051f43ea'
+         'f6705520bc0a6655157cd14efdaac746')
diff --git a/abs/core/mythinstall/install-ui.xml b/abs/core/mythinstall/install-ui.xml
index ef445bb..48f2847 100755
--- a/abs/core/mythinstall/install-ui.xml
+++ b/abs/core/mythinstall/install-ui.xml
@@ -129,6 +129,20 @@
                 <align>right</align>
             </textarea>
 
+            <imagetype name="logo">
+                <position>0,10</position>
+                <preserveaspect>true</preserveaspect>
+                <crop>x,y,w,h</crop>
+                <filepattern low="0" high="3000">/usr/MythVantage/logos/logo-%1.png</filepattern>
+                <delay>5000</delay>
+            </imagetype>
+
+            <imagetype name="logo1">
+                <position>650,10</position>
+                <filename>/usr/MythVantage/logos/</filename>
+                <preserveaspect>true</preserveaspect>
+                <crop>x,y,w,h</crop>
+            </imagetype>
 
     </window>
 
diff --git a/abs/core/mythinstall/logo-1.png b/abs/core/mythinstall/logo-1.png
new file mode 100644
index 0000000..5a4293c
Binary files /dev/null and b/abs/core/mythinstall/logo-1.png differ
diff --git a/abs/core/mythinstall/logo-2.png b/abs/core/mythinstall/logo-2.png
new file mode 100644
index 0000000..cb6f152
Binary files /dev/null and b/abs/core/mythinstall/logo-2.png differ
diff --git a/abs/core/mythinstall/logo-3.png b/abs/core/mythinstall/logo-3.png
new file mode 100644
index 0000000..0a59252
Binary files /dev/null and b/abs/core/mythinstall/logo-3.png differ
diff --git a/abs/core/mythinstall/logo-4.png b/abs/core/mythinstall/logo-4.png
new file mode 100644
index 0000000..6e70af7
Binary files /dev/null and b/abs/core/mythinstall/logo-4.png differ
diff --git a/abs/core/mythinstall/logo-5.png b/abs/core/mythinstall/logo-5.png
new file mode 100644
index 0000000..6f1ac44
Binary files /dev/null and b/abs/core/mythinstall/logo-5.png differ
diff --git a/abs/core/mythinstall/logo-6.png b/abs/core/mythinstall/logo-6.png
new file mode 100644
index 0000000..4c60fe6
Binary files /dev/null and b/abs/core/mythinstall/logo-6.png differ
diff --git a/abs/core/mythinstall/logo_src/command-ir.png b/abs/core/mythinstall/logo_src/command-ir.png
new file mode 100644
index 0000000..83937b0
Binary files /dev/null and b/abs/core/mythinstall/logo_src/command-ir.png differ
diff --git a/abs/core/mythinstall/logo_src/hp_logo.png b/abs/core/mythinstall/logo_src/hp_logo.png
new file mode 100644
index 0000000..211b19e
Binary files /dev/null and b/abs/core/mythinstall/logo_src/hp_logo.png differ
diff --git a/abs/core/mythinstall/logo_src/mythtv.png b/abs/core/mythinstall/logo_src/mythtv.png
new file mode 100644
index 0000000..ecea214
Binary files /dev/null and b/abs/core/mythinstall/logo_src/mythtv.png differ
diff --git a/abs/core/mythinstall/logo_src/pchdtv.png b/abs/core/mythinstall/logo_src/pchdtv.png
new file mode 100644
index 0000000..fad6457
Binary files /dev/null and b/abs/core/mythinstall/logo_src/pchdtv.png differ
diff --git a/abs/core/mythinstall/logo_src/resize_link.sh b/abs/core/mythinstall/logo_src/resize_link.sh
new file mode 100644
index 0000000..0dc7774
--- /dev/null
+++ b/abs/core/mythinstall/logo_src/resize_link.sh
@@ -0,0 +1,12 @@
+count=1
+
+
+#mogrify -resize 200x200 *.png
+
+for i in *.png
+do
+  #ln -s $i logo-$count.png
+  #cp  $i logo-$count.png
+  convert -resize 150x150 $i ../logo-$count.png 
+  let count+=1
+done
diff --git a/abs/core/mythinstall/logo_src/simerec.png b/abs/core/mythinstall/logo_src/simerec.png
new file mode 100644
index 0000000..93db677
Binary files /dev/null and b/abs/core/mythinstall/logo_src/simerec.png differ
diff --git a/abs/core/mythinstall/logo_src/supercorn-0.png b/abs/core/mythinstall/logo_src/supercorn-0.png
new file mode 100644
index 0000000..de5966a
Binary files /dev/null and b/abs/core/mythinstall/logo_src/supercorn-0.png differ
-- 
cgit v0.12

