pkgsrc/games/sauerbraten/files/sauerbraten.sh.in
nia 2368d0c106 Add sauerbraten-2013_04_04 as games/sauerbraten
Cube 2: Sauerbraten is a free multiplayer & singleplayer first
person shooter, the successor of the Cube FPS.

Much like the original Cube, the aim of this game is fun, old school
deathmatch gameplay and also to allow map/geometry editing to be
done cooperatively in-game.

The engine supporting the game is entirely original in code &
design, and its code is Open Source (ZLIB license, read the docs
for more on how you can use the engine).
2019-06-30 21:41:46 +00:00

9 lines
239 B
Bash

#!/bin/sh
if [ -n "${XDG_CONFIG_HOME}" ]; then
DIR="${XDG_CONFIG_HOME}/sauerbraten"
else
DIR="${HOME}/.config/sauerbraten"
fi
mkdir -p "${DIR}" && \
cd "@PREFIX@/share/sauerbraten" && \
exec "@PREFIX@/libexec/${0##*/}" "-q${DIR}" "$@"