blob: 381ce6bcbcc9e5c2b60db26783043d151a9fd0f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
#export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing.
pkgname=dwarffortress #To be set by PKGBUILD
if [[ ! -d "$HOME/.$pkgname" ]]; then
mkdir -p "$HOME/.$pkgname/data"
ln -s /opt/"$pkgname"/raw "$HOME/.$pkgname/raw"
ln -s /opt/"$pkgname"/libs "$HOME/.$pkgname/libs"
cp -rn /opt/"$pkgname"/data/init "$HOME/.$pkgname/data/init"
fi
for link in announcement art dipscript help index initial_movies movies shader.fs shader.vs sound speech; do
cp -r /opt/"$pkgname"/data/$link "$HOME/.$pkgname/data/$link"
done
cd "$HOME/.$pkgname"
exec ./libs/Dwarf_Fortress "$@"
|