-
Notifications
You must be signed in to change notification settings - Fork 0
/
getSource-4.2.sh
executable file
·59 lines (44 loc) · 2.36 KB
/
getSource-4.2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
cd "$(dirname "$0")"
printf "This will require ~140GB\n"
#sudo apt-get build-dep gcc binutils llvm-defaults
#Got the following errors on apt-get install
#E: Unable to locate package libemma-java
#E: Unable to locate package libandroidsdk-ddmlib-java
#E: Unable to locate package ca-cacert
#E: Unable to locate package zlib1g-dev:i386
#E: Unable to locate package libandroidsdk-sdklib-java
#E: Unable to locate package eclipse-jdt
#E: Unable to locate package libgradle-android-plugin-java
#sudo apt-get install kmod bash gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev xsltproc python-mako schedtool gradle dirmngr android-sdk-build-tools android-sdk-platform-23 aapt lzop rsync
#wget "https://ftp.osuosl.org/pub/replicant/build-tools/repo/28-01-2021/sz1lkq3ryr5iv6amy6f3d2pziks27g28-tarball-pack.tar.xz"
#if [ "$(sha512sum sz1lkq3ryr5iv6amy6f3d2pziks27g28-tarball-pack.tar.xz | cut -d " " -f 1)" != "def3c0b3ae2305d695b57d8d1f2fa8acfaf9b7c9c0f668c129a2bfe2652c24a8f2f8167d95f0d71a72d04601daac2b626bfecfae8e7833c812d912d95fd61a5a" ]; then
# printf "UHOH, BAD CHECKSUM\n"
# exit
#fi
sudo tar xf sz1lkq3ryr5iv6amy6f3d2pziks27g28-tarball-pack.tar.xz -C /
source /usr/local/bin/repo-env.sh
mkdir replicant-4.2
cd replicant-4.2
git config --global user.email "[email protected]"
git config --global user.name "Absolutely Anonymous"
#git clone https://code.fossencdi.org/replicant_manifest.git -b replicant-4.2
mkdir -p manifest
cp ./replicant_manifest/default.xml manifest/
cd manifest
git init
git add default.xml
git commit -m "My local manifest"
cd ..
repo init -u manifest
repo sync
##get fdroid prebuilt apps
#gpg --keyserver keys.gnupg.net --recv-key 37D2C98789D8311948394E3E41E7044E1DBA2E89
#vendor/replicant/get-prebuilts
#cd ..
#mkdir replicant-6.0
#cd replicant-6.0
#repo init -u https://git.replicant.us/replicant/manifest.git -b refs/tags/replicant-6.0-0004-rc2
##get fdroid prebuilt apps
#gpg --keyserver keys.gnupg.net --recv-key 37D2C98789D8311948394E3E41E7044E1DBA2E89
#vendor/replicant/get-prebuilts