I've written a script that automates the setup and building of binaries with gitian. All of the commands are pulled from various documentation on gitian building.