termux-packages/scripts/properties.sh

58 lines
1.7 KiB
Bash
Raw Normal View History

# XXX: This file is sourced by repology-updater script
# So avoid doing things like executing commands except of those available in
# coreutils and are clearly not a default part of most Linux installations,
# or sourcing any other script in our build directories.
TERMUX_SDK_REVISION=8512546
2020-12-07 20:09:31 +00:00
TERMUX_ANDROID_BUILD_TOOLS_VERSION=30.0.3
2021-09-16 19:51:29 +00:00
TERMUX_NDK_VERSION_NUM=23
TERMUX_NDK_REVISION="c"
2019-02-21 21:40:37 +00:00
TERMUX_NDK_VERSION=$TERMUX_NDK_VERSION_NUM$TERMUX_NDK_REVISION
# 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 21:29:39 +00:00
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
if [ "${TERMUX_PACKAGES_OFFLINE-false}" = "true" ]; then
export ANDROID_HOME=${TERMUX_SCRIPTDIR}/build-tools/android-sdk-$TERMUX_SDK_REVISION
export NDK=${TERMUX_SCRIPTDIR}/build-tools/android-ndk-r${TERMUX_NDK_VERSION}
else
: "${ANDROID_HOME:="${HOME}/lib/android-sdk-$TERMUX_SDK_REVISION"}"
: "${NDK:="${HOME}/lib/android-ndk-r${TERMUX_NDK_VERSION}"}"
fi
# Termux packages configuration.
TERMUX_APP_PACKAGE="com.termux"
TERMUX_BASE_DIR="/data/data/${TERMUX_APP_PACKAGE}/files"
TERMUX_CACHE_DIR="/data/data/${TERMUX_APP_PACKAGE}/cache"
TERMUX_ANDROID_HOME="${TERMUX_BASE_DIR}/home"
TERMUX_APPS_DIR="${TERMUX_BASE_DIR}/apps"
TERMUX_PREFIX="${TERMUX_BASE_DIR}/usr"
# Termux repo urls.
TERMUX_REPO_URL=(
https://packages-cf.termux.dev/apt/termux-main
https://packages-cf.termux.dev/apt/termux-root
https://packages-cf.termux.dev/apt/termux-x11
)
TERMUX_REPO_DISTRIBUTION=(
stable
root
x11
)
TERMUX_REPO_COMPONENT=(
main
stable
main
)
# Allow to override setup.
2020-11-13 19:10:34 +00:00
if [ -f "$HOME/.termuxrc" ]; then
. "$HOME/.termuxrc"
fi