-
Notifications
You must be signed in to change notification settings - Fork 13
/
install.sh
executable file
·45 lines (42 loc) · 1.54 KB
/
install.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
#!/data/data/com.termux/files/usr/bin/bash
# File : install.sh
# Author : rendiix <[email protected]>
# Create date: 6-Dec-2019 12:06
# install.sh
# Copyright (c) 2019 rendiix <[email protected]>
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Everyone is permitted to copy and distribute verbatim or
# modified copies of this license document,and changing it
# is allowed as long as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING,
# DISTRIBUTION AND MODIFICATION
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
# Get some needed tools. coreutils for mkdir command, gnugp for the signing key, and apt-transport-https to actually connect to the repo
apt-get update
apt-get --assume-yes upgrade
apt-get --assume-yes install coreutils gnupg wget
# Make the sources.list.d directory
[ ! -d $PREFIX/etc/apt/sources.list.d ] && mkdir $PREFIX/etc/apt/sources.list.d
# Write the needed source file
if [ ! -f "$PREFIX/etc/apt/sources.list.d/rendiix.list" ]; then
echo "deb https://rendiix.github.io android-tools termux" > $PREFIX/etc/apt/sources.list.d/rendiix.list
echo -e "\ngetting the repo key...\n"
wget -qP $PREFIX/etc/apt/trusted.gpg.d https://rendiix.github.io/rendiix.gpg
apt-get update
else
echo -e "\nrepo already installed\n"
apt update
fi
if [ "$?" = 0 ]; then
apt-get --assume-yes install apktool
echo -e "\nDone! apktool succesfully installed"
else
echo -e "\nSometing wrong, please re run this script"
exit 1
fi