2 # Get 32-bit libs required for Dwarf Fortress on 64-bit Linux.
3 # requires debian's dpkg program.
6 if ! which "$1" >/dev
/null
2>&1 ; then
7 echo "required program $1 not installed. aborting."
17 # Save the file from $1 as $2 using wget.
21 wget
-O "temp/$file" "$url"/"$file"
22 dpkg
-x "temp/$file" temp
28 # Get the required libs:
29 fetchextract
"http://ftp.us.debian.org/debian/pool/main/s/sdl-image1.2" "libsdl-image1.2_1.2.10-2+b2_i386.deb"
30 fetchextract
"http://ftp.us.debian.org/debian/pool/main/s/sdl-ttf2.0" "libsdl-ttf2.0-0_2.0.9-1_i386.deb"
31 fetchextract
"http://ftp.us.debian.org/debian/pool/main/o/openal-soft" "libopenal1_1.12.854-2_i386.deb"
33 # Put them to df's libs directory:
36 mv temp
/usr
/lib
/libopenal.so
.1.12.854 libs
/libopenal.so
37 mv temp
/usr
/lib
/libSDL_image-1.2.so
.0.8.2 libs
/libSDL_image-1.2.so
.0
38 mv temp
/usr
/lib
/libSDL_ttf-2.0.so
.0.6.3 libs
/libSDL_ttf-2.0.so
.0