A Crux port for Dwarf Fortress

Silly me, I waxed poetic about Dwarf Fortress the other day, but never posted the Crux port I used to install it on my system.

Be aware that this doesn’t mention the dependency on GL libraries — libgl in the original Arch PKGBUILD — that you should add depending on your hardware. I use the proprietary hardware driver from Nvidia, which is why this doesn’t include it.

# Description: Dwarf Fortress is a single-player fantasy game.  You can control a dwarven outpost or an adventurer in a randomly generated, persistent world.
# URL: http://www.bay12games.com/dwarves/
# Maintainer:  
# Depends on: gtk libsdl sdl_image 

name=dwarffortress
version=v0.28.181.40d5
release=3
source=(http://www.bay12games.com/dwarves/df_28_181_40d5_linux.tar.bz2)
build () 
{ 
    cd df_linux;
    install -d $PKG/usr/bin/;
    cp -r $SRC/df_linux/ $PKG/usr/bin/;
    echo "#!/bin/sh" > $PKG/usr/bin/dwarffortress.sh;
    echo "cd /usr/bin/df_linux" >> $PKG/usr/bin/dwarffortress.sh;
    echo "./df" >> $PKG/usr/bin/dwarffortress.sh;
    chmod -R 777 $PKG/usr/bin/df_linux;
    chmod 777 $PKG/usr/bin/dwarffortress.sh;
    install -D $SRC/df_linux/readme.txt $PKG/usr/share/licenses/dwarffortress/readme.txt
}

Thanks once again to the Arch community for putting together a working PKGBUILD, and to Colin Zheng, for making the transition between Arch-ese and Crux-ese much, much easier.

1 thought on “A Crux port for Dwarf Fortress

Leave a reply to Timmy Macdonald Cancel reply