Last active
January 3, 2019 11:16
-
-
Save keyakko/37996d8b77fea5d51eeca5a0c5a6b0ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
E_BUILD_DIR=~/Android/lineage | |
E_CPUS=$(cat /proc/cpuinfo | grep ^processor | wc -l) | |
# アップデートする | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install -y autoconf automake bc bison build-essential \ | |
curl flex g++ g++-multilib gawk gcc gcc-multilib git gnupg \ | |
gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev \ | |
libc6-dev libexpat1-dev liblz4-1 liblz4-tool liblzma5 liblzma-dev \ | |
libncurses5-dev libsdl1.2-dev libwxgtk3.0-dev libxml2 libxml2-utils \ | |
lzop maven openjdk-8-jdk openjdk-8-jre patch pkg-config pngcrush \ | |
python schedtool squashfs-tools texinfo unzip xsltproc zip zlib1g-dev | |
# repoのインストール | |
sudo bash -c "curl https://storage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo" | |
sudo chmod a+x /usr/bin/repo | |
mkdir -p ${E_BUILD_DIR:-"~/Android/lineage"} | |
cd ${E_BUILD_DIR:-"~/Android/lineage"} | |
# 初期化・クローン | |
repo init -u git://github.com/LineageOS/android.git -b lineage-16.0 | |
repo sync -j${E_CPUS} --force-sync --no-clone-bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment