Added prepare-build script.
Added support for building custom packages automatically.