To build PureNexus MOD from source, you'll need to be familiar with Git and Repo.
To initialize your local repository, use this command:
repo init -u https://github.com/angelcalibur/pnmod-manifest.git -b mm2oms
Then to sync source, use this command:
repo sync
After syncing is done, use these commands to build (or the build script in the scripts folder):
1.) . build/envsetup.sh
2.) brunch xxxx yyyy
xxxx= device name aka hammerhead
yyyy= build type (user,userdebug,eng)*
*if no build type is specified "userdebug" is default
Enjoy, Stick around for a while AOSP Building is Fun!!!
@BeansTown106 on Twitter
PureNexus Community on Google+
For compiling in Ubuntu 16.04 (Java 8 by default)
You need to add 'export EXPERIMENTAL_USE_JAVA8=true' to your .bashrc or in the command prompt before compiling