summaryrefslogtreecommitdiff
path: root/games/wmquake/wmquake.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-08-18 05:36:30 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:50:03 +0700
commit3a1ee18cb59a98e62b22fe93fe8b7a63c4ae863d (patch)
tree3b147da364bba68f86b51fc111939598b80086e6 /games/wmquake/wmquake.sh
parent2cf550c755a2453a387d2415ffdad97ec1933a0c (diff)
downloadslackbuilds-3a1ee18cb59a98e62b22fe93fe8b7a63c4ae863d.tar.gz
games/wmquake: New maintainer, fix build.
Diffstat (limited to 'games/wmquake/wmquake.sh')
-rw-r--r--games/wmquake/wmquake.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/wmquake/wmquake.sh b/games/wmquake/wmquake.sh
new file mode 100644
index 0000000000..888c0ea461
--- /dev/null
+++ b/games/wmquake/wmquake.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+mkdir -p ~/.wmquake
+if ! cd ~/.wmquake; then
+ echo "Can't create ~/.wmquake" 2>&1
+ exit 1
+fi
+if [ ! -e id1 ]; then
+ mkdir -p id1
+ ln -s /usr/share/games/quake/id1/* id1/
+fi
+exec /usr/libexec/wmquake/wmquake "$@"