Bash for Termux.
Posted: Thu Jun 27, 2024 10:50 am
Bash to get all the stuff to compile Stockfish under Termux (Linux command prompt on Android):
Code: Select all
GNU nano 8.0 installC.sh
#!/data/data/com.termux/files/usr/bin/bash
termux-change-repo
# Upgrade existing packages
pkg upgrade
# Tools and libraries
pkg install git gnupg make mc ndk-multilib wget zip
pkg install libcurl-static libnghttp2-static libssh2-stati>
# GCC
mkdir -p ../usr/etc/apt/sources.list.d
wget -O - https://cctools.info/public.key | apt-key add -
echo 'deb https://cctools.info termux cctools' > ../usr/>
apt update --allow-insecure-repositories
pkg install gcc-cctools ndk-sysroot-cctools-api-21-aarch>
echo 'export PATH=/data/data/com.termux/files/cctools-to>
echo '# deb https://cctools.info termux cctools' > ../us>
echo Installation completed.
echo Type \'logout\' or \'exit\' and start Termux again.