scummvm: copy config from openmoko to shr
authorThomas Zimmermann <ml@vdm-design.de>
Fri, 27 Nov 2009 10:24:48 +0000 (10:24 +0000)
committerKlaus Kurzmann <mok@fluxnetz.de>
Sat, 28 Nov 2009 09:07:33 +0000 (10:07 +0100)
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
recipes/scummvm/files/shr/openmoko-scummvm [new file with mode: 0644]
recipes/scummvm/files/shr/scummvm.desktop [new file with mode: 0644]
recipes/scummvm/scummvm_0.12.0.bb

diff --git a/recipes/scummvm/files/shr/openmoko-scummvm b/recipes/scummvm/files/shr/openmoko-scummvm
new file mode 100644 (file)
index 0000000..58eb2bb
--- /dev/null
@@ -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 (file)
index 0000000..96c0250
--- /dev/null
@@ -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
index 630db67..9d76426 100644 (file)
@@ -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"