The Replicant source code is currently hosted at Gitorious: https://gitorious.org/replicant
There is a branch per Replicant version, like replicant-2.2
.
Before downloading the Replicant source code, make sure there is a considerable amount of disk space left on the drive you intent to build Replicant on.
It is advised to have 40-50GiB available for the Replicant source code and the produced files.
The path to the source tree root location must not contain spaces.
Then, download the repo
tool and set it executable:
mkdir tools cd tools wget http://commondatastorage.googleapis.com/git-repo-downloads/repo chmod a+x repo cd ../
The source manifest is the list of all the git repositories that are present in the Replicant tree.
Each Replicant version has a dedicated branch with the proper source manifest.
mkdir replicant-4.2 cd replicant-4.2 ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.2
mkdir replicant-4.0 cd replicant-4.0 ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.0
mkdir replicant-2.3 cd replicant-2.3 ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3
mkdir replicant-2.2 cd replicant-2.2 ../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
Now that you have configured the repository to use a manifest, you can start downloading Replicant sources for the desired version.
This step is very long and can take the whole day to complete!
../tools/repo sync
Depending on your internet bandwidth, using the -j
argument may speed up the process (if you encounter errors, retry without the -j
argument):
../tools/repo sync -j9
Once the source is ready, you need to get the prebuilt applications (they are downloaded from F-Droid):
vendor/replicant/get-prebuilts
You must redo these steps each time you want to sync your tree, in order to keep it up to date. Future syncs are faster than the first one.