Forked from axxx007xxxz/Setup Android build environment on Fedora
Last active
October 24, 2021 08:11
-
-
Save tdrkDev/3244629fc9545adf1ab963560098ea69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
if [ $UID != "0" ]; then | |
echo "ERROR: You must run this script as root!" | |
exit 1 | |
fi | |
echo "Install Java 8 for Android versions lower than Q? (y/N)" | |
echo -n "$0> " | |
read installJava | |
case "$installJava" in | |
y|Y) echo "Java 8 will be installed." | |
installJava="\ | |
java-1.8.0-openjdk" | |
;; | |
*) installJava="" | |
;; | |
esac | |
dnf install \ | |
@development-tools \ | |
android-tools \ | |
automake \ | |
bison \ | |
bzip2 \ | |
bzip2-libs \ | |
ccache \ | |
curl \ | |
dpkg-dev \ | |
gcc \ | |
gcc-c++ \ | |
gperf \ | |
libstdc++.i686 \ | |
libxml2-devel \ | |
lz4-libs \ | |
lzop \ | |
make \ | |
maven \ | |
ncurses-compat-libs \ | |
openssl-devel \ | |
pngcrush \ | |
python \ | |
python3 \ | |
python3-mako \ | |
python-mako \ | |
python-networkx \ | |
schedtool \ | |
squashfs-tools \ | |
syslinux-devel \ | |
zip \ | |
zlib-devel \ | |
zlib-devel.i686 \ | |
openssl $installJava \ | |
ImageMagick \ | |
ImageMagick-devel \ | |
ImageMagick-c++ \ | |
ImageMagick-c++-devel | |
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /usr/bin/repo && chmod +x /usr/bin/repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment