[oe-commits] Thomas Zimmermann : scummvm: copy config from openmoko to shr

git version control git at git.openembedded.org
Sat Nov 28 18:11:12 UTC 2009


Module: openembedded.git
Branch: martin_jansa/srcpv
Commit: 5c0217046abddee3cd8196613866791171da1847
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5c0217046abddee3cd8196613866791171da1847

Author: Thomas Zimmermann <ml at vdm-design.de>
Date:   Fri Nov 27 10:24:48 2009 +0000

scummvm: copy config from openmoko to shr

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/scummvm/files/shr/openmoko-scummvm |   19 +++++++++++++++++++
 recipes/scummvm/files/shr/scummvm.desktop  |   12 ++++++++++++
 recipes/scummvm/scummvm_0.12.0.bb          |    1 +
 3 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/recipes/scummvm/files/shr/openmoko-scummvm b/recipes/scummvm/files/shr/openmoko-scummvm
new file mode 100644
index 0000000..58eb2bb
--- /dev/null
+++ b/recipes/scummvm/files/shr/openmoko-scummvm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Save current AUX Key mapping
+SAVE_KEY="$(xmodmap -pke | grep 'keycode 177')"
+
+# Map AUX Key to F5
+xmodmap -e "keycode 177 = F5"
+
+# Turn LCD feft
+xrandr -o left
+
+# Start the scummvm in fullscreen mode
+scummvm --fullscreen --themepath=/usr/share/scummvm/
+
+# Turn LCD normal
+xrandr -o normal
+
+# Restore the AUX Key mapping
+xmodmap -e "$SAVE_KEY"
diff --git a/recipes/scummvm/files/shr/scummvm.desktop b/recipes/scummvm/files/shr/scummvm.desktop
new file mode 100644
index 0000000..96c0250
--- /dev/null
+++ b/recipes/scummvm/files/shr/scummvm.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=ScummVM
+Name[pl]=ScummVM
+Comment=Interpreter for several adventure games
+Comment[pl]=Interpreter graficznych gier przygodowych
+Exec=openmoko-scummvm
+Icon=scummvm.xpm
+Terminal=false
+Type=Application
+Categories=Application;Game;AdventureGame;
+StartupNotify=false
diff --git a/recipes/scummvm/scummvm_0.12.0.bb b/recipes/scummvm/scummvm_0.12.0.bb
index 630db67..9d76426 100644
--- a/recipes/scummvm/scummvm_0.12.0.bb
+++ b/recipes/scummvm/scummvm_0.12.0.bb
@@ -9,6 +9,7 @@ SRC_URI += " file://scummvm.desktop \
 	file://no-strip.patch;patch=1"
 
 SRC_URI_append_openmoko = " file://openmoko-scummvm "
+SRC_URI_append_shr = " file://openmoko-scummvm "
 
 
 SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"





More information about the Openembedded-commits mailing list