To build a ROM from source,the first basic requirement is build tools without which it is impossible build ROMs.So in this tutorial I am going to teach you how to install Build tools.
Step 1 : Clone the scripts repo by Akhilnarang. Use the following code to clone the repo.
git clone https://github.com/akhilnarang/scripts.git
Step 2 : Go to the directory which we cloned in previous step.
Step 3 : Executing the script according to the os you use.
For example : You use ubuntu 16.04, then you will have to execute ubuntu1604linuxmint18.sh script.
For Linux Mint 17x :
For Ubuntu 14.04 :
For Ubuntu 16.04 or Linux Mint 18 :