Bash for Termux.

Post Reply
User avatar
massimilianogoi
Site Admin
Posts: 393
Joined: Thu Aug 04, 2022 1:42 pm
Has thanked: 603 times
Been thanked: 646 times
Contact:

Bash for Termux.

Post by massimilianogoi »

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.
People who have lost the hope.
Post Reply