2021-10-23 14:55:04 +02:00
|
|
|
# keep repology-metadata in sync with this
|
|
|
|
|
2022-04-23 08:58:02 +02:00
|
|
|
TERMUX_SDK_REVISION=7583922
|
2020-12-07 21:09:31 +01:00
|
|
|
TERMUX_ANDROID_BUILD_TOOLS_VERSION=30.0.3
|
2021-09-16 21:51:29 +02:00
|
|
|
TERMUX_NDK_VERSION_NUM=23
|
2021-10-22 16:08:49 +02:00
|
|
|
TERMUX_NDK_REVISION="b"
|
2019-02-21 22:40:37 +01:00
|
|
|
TERMUX_NDK_VERSION=$TERMUX_NDK_VERSION_NUM$TERMUX_NDK_REVISION
|
2021-10-23 14:55:04 +02:00
|
|
|
# when changing the above:
|
|
|
|
# remove TERMUX_PKG_REVISION in:
|
|
|
|
# libc++, ndk-multilib, ndk-sysroot, vulkan-loader-android
|
|
|
|
# update SHA256 sums in scripts/setup-android-sdk.sh
|
|
|
|
# check all packages build and run correctly and bump if needed
|
2018-09-19 23:29:39 +02:00
|
|
|
|
2022-04-25 22:22:59 +02:00
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
|
2021-08-01 17:38:19 +02:00
|
|
|
|
2020-10-22 22:16:08 +02:00
|
|
|
if [ "${TERMUX_PACKAGES_OFFLINE-false}" = "true" ]; then
|
2022-04-23 08:58:02 +02:00
|
|
|
export ANDROID_HOME=${TERMUX_SCRIPTDIR}/build-tools/android-sdk-$TERMUX_SDK_REVISION
|
|
|
|
export NDK=${TERMUX_SCRIPTDIR}/build-tools/android-ndk-r${TERMUX_NDK_VERSION}
|
2020-10-22 22:16:08 +02:00
|
|
|
else
|
2022-04-23 08:58:02 +02:00
|
|
|
: "${ANDROID_HOME:="${HOME}/lib/android-sdk-$TERMUX_SDK_REVISION"}"
|
|
|
|
: "${NDK:="${HOME}/lib/android-ndk-r${TERMUX_NDK_VERSION}"}"
|
2020-10-22 22:16:08 +02:00
|
|
|
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
|