Here are my build scripts. Dwarf Fortress is placed in /opt and then a local copy is made for the user when run. WolfMAME and Blockstream Green are also in /opt.