slackbuilds_ponce/games/sdlpop/sdlpop.sh
B. Watson 2aea708a44 games/sdlpop: Added (Prince of Persia rewrite).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-08-14 08:29:02 +07:00

21 lines
414 B
Bash

#!/bin/sh
# 20160812 bkw:
# wrapper script for sdlpop, for slackbuilds.org
EXE=/usr/libexec/sdlpop/prince
USERDIR=$HOME/.sdlpop
SHAREDIR=/usr/share/games/sdlpop
INI=SDLPoP.ini
[ ! -e $USERDIR ] && mkdir -p $USERDIR
cd $USERDIR || exit 1
for file in $SHAREDIR/*; do
base="$( basename "$file" )"
[ -e "$base" ] || ln -s "$file" "$base"
done
[ -L $INI ] && ( rm -f $INI ; cp $SHAREDIR/$INI . )
exec $EXE "$@"