summarylogtreecommitdiffstats
path: root/suave
diff options
context:
space:
mode:
authorVladimir Navrat2018-10-10 18:21:34 +0200
committerVladimir Navrat2018-10-10 18:21:34 +0200
commitd3233aef7ca93c809d3fa7a86f7dc384e504a76f (patch)
tree1157d3c6a55e993d9ddda88fe46d875acb6ae06d /suave
downloadaur-suave.tar.gz
initial version
Diffstat (limited to 'suave')
-rw-r--r--suave18
1 files changed, 18 insertions, 0 deletions
diff --git a/suave b/suave
new file mode 100644
index 00000000000..b792a7c193f
--- /dev/null
+++ b/suave
@@ -0,0 +1,18 @@
+#!/bin/bash
+APPLICATION=suave
+CONFIG_DIR="$HOME/.${APPLICATION}"
+
+export WINEPREFIX="${CONFIG_DIR}"
+export WINEDLLOVERRIDES="mscoree,mshtml,winemp3.acm="
+
+if [ ! -d "${WINEPREFIX}" ] ; then
+ mkdir -p "${WINEPREFIX}/${APPLICATION}/Levels" || exit 1
+ wineboot -u
+ ln -sf "/usr/share/${APPLICATION}/SUAVE.exe" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ ln -sf "/usr/share/${APPLICATION}/Data1.pak" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ ln -sf "/usr/share/${APPLICATION}/Data2.pak" "${CONFIG_DIR}/${APPLICATION}/" || exit 1
+ cp -rf /usr/share/${APPLICATION}/Levels/* "${WINEPREFIX}/${APPLICATION}/Levels" || exit 1
+fi
+
+wine "${CONFIG_DIR}/${APPLICATION}/SUAVE.exe" "$@"
+