First thing is to download the latest sgtd source and checksum file.
tar xjf sgtd-0.3.1.tar.bz2
cd sgtd-0.3.1
make install
Cut and paste this short script to your shell:
if sha1sum --check --status sgtd-0.3.1.tar.bz2.sha1
then
tar xjf sgtd-0.3.1.tar.bz2
cd sgtd-0.3.1
fi
If it fails, there may have been a bad checksum. Try downloading again.
Now edit config.mk for your system, especially LIBS, INCS, and PREFIX. Finally, run the command:
make install