$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir ~/RR
$ cd ~/RR
$ repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b nougat
$ curl --create-dirs -L -o .repo/local_manifests/RR.xml -O -L https://raw.githubusercontent.com/mountaser/Local_Manifests/RR_7.0.0(device name)
[Hint: This might take a long time as the source is ~20GB]
$ repo sync -f --force-sync --no-clone-bundle
$ echo "export USE_CCACHE=1" >> ~/.bashrc
$ ~/RR/prebuilts/misc/linux-x86/ccache/ccache -M 50G
$ cd ~/RR
$ . build/envsetup.sh && brunch <device>