-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonal-arch-script.sh
executable file
·64 lines (53 loc) · 2.07 KB
/
personal-arch-script.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
59
60
61
62
63
64
#!/usr/bin/env bash
# Script to setup an android build environment on Arch Linux and derivative distributions
clear
# Uncomment the multilib repo, incase it was commented out
sudo sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
echo Installing Dependencies!
# Update
sudo pacman -Syyu
#install git
sudo pacman -S git --noconfirm
#install yay
git clone https://aur.archlinux.org/yay.git
cd yay.git
makepkg -si
cd..
rm -rf yay
#install my apps
yay -S telegram-desktop pamac-aur xed matcha-gtk-theme sardi-icons android-studio fbreader mintstick-git picom google-chrome --noconfirm
#install a few dependencies
sudo pacman -S aosp-devel lzop pngcrush imagemagick --noconfirm
#install nvidia
sudo pacman -S nvidia nvidia-utils nvidia-settings xorg-server-devel opencl-nvidia openssh nano --noconfirm
# Install Android dependencies
sudo pacman -S base-devel git wget multilib-devel cmake svn clang lzip patchelf inetutils python2-distlib
# Install ncurses5-compat-libs, lib32-ncurses5-compat-libs, aosp-devel, xml2, and lineageos-devel
for package in ncurses5-compat-libs lib32-ncurses5-compat-libs aosp-devel xml2 lineageos-devel; do
git clone https://aur.archlinux.org/"${package}"
cd "${package}" || continue
makepkg -si --skippgpcheck
cd - || break
rm -rf "${package}"
done
# For all those distro hoppers, lets setup your git credentials
GIT_USERNAME="$(git config --get user.name)"
GIT_EMAIL="$(git config --get user.email)"
echo "Configuring git"
if [[ -z ${GIT_USERNAME} ]]; then
echo -n "Enter your name: "
read -r NAME
git config --global user.name "${NAME}"
fi
if [[ -z ${GIT_EMAIL} ]]; then
echo -n "Enter your email: "
read -r EMAIL
git config --global user.email "${EMAIL}"
fi
git config --global credential.helper "cache --timeout=7200"
echo "git identity setup successfully!"
echo "Installing repo"
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
echo -e "Installing platform tools & udev rules for adb!"
sudo pacman -S android-tools android-udev