2019-09-25 23:12:16 +02:00
|
|
|
TERMUX_ANDROID_BUILD_TOOLS_VERSION=29.0.2
|
2020-01-18 23:18:11 +01:00
|
|
|
TERMUX_NDK_VERSION_NUM=21
|
2020-07-08 06:58:23 +02:00
|
|
|
TERMUX_NDK_REVISION="d"
|
2019-02-21 22:40:37 +01:00
|
|
|
TERMUX_NDK_VERSION=$TERMUX_NDK_VERSION_NUM$TERMUX_NDK_REVISION
|
2018-09-19 23:29:39 +02:00
|
|
|
|
2020-10-22 22:16:08 +02:00
|
|
|
if [ "${TERMUX_PACKAGES_OFFLINE-false}" = "true" ]; then
|
|
|
|
export ANDROID_HOME=${TERMUX_SCRIPTDIR}/build-tools/android-sdk
|
2020-10-22 22:28:20 +02:00
|
|
|
export NDK=${TERMUX_SCRIPTDIR}/build-tools/android-ndk
|
2020-10-22 22:16:08 +02:00
|
|
|
else
|
|
|
|
: "${ANDROID_HOME:="${HOME}/lib/android-sdk"}"
|
|
|
|
: "${NDK:="${HOME}/lib/android-ndk"}"
|
|
|
|
fi
|
2020-10-30 20:31:19 +01:00
|
|
|
|
|
|
|
# Termux packages configuration.
|
2020-10-30 20:59:59 +01:00
|
|
|
TERMUX_APP_PACKAGE="com.termux"
|
2020-10-30 21:24:07 +01:00
|
|
|
TERMUX_BASE_DIR="/data/data/${TERMUX_APP_PACKAGE}/files"
|
2020-10-30 21:15:19 +01:00
|
|
|
TERMUX_CACHE_DIR="/data/data/${TERMUX_APP_PACKAGE}/cache"
|
2020-10-30 21:24:07 +01:00
|
|
|
TERMUX_ANDROID_HOME="${TERMUX_BASE_DIR}/home"
|
|
|
|
TERMUX_PREFIX="${TERMUX_BASE_DIR}/usr"
|
2020-11-13 14:08:35 +01:00
|
|
|
|
|
|
|
# Allow to override setup.
|
2020-11-13 20:10:34 +01:00
|
|
|
if [ -f "$HOME/.termuxrc" ]; then
|
|
|
|
. "$HOME/.termuxrc"
|
|
|
|
fi
|