Skip to content

Commit

Permalink
Make $TERMUX_DEBDIR configurable
Browse files Browse the repository at this point in the history
Allows building debs outside of the Termux source directory
  • Loading branch information
depau committed Aug 22, 2018
1 parent 20360b6 commit e45ad0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ termux_step_setup_variables() {
: "${TERMUX_ANDROID_HOME:="/data/data/com.termux/files/home"}"
: "${TERMUX_DEBUG:=""}"
: "${TERMUX_PKG_API_LEVEL:="21"}"
: "${TERMUX_DEBDIR:="${TERMUX_SCRIPTDIR}/debs"}"

if [ "x86_64" = "$TERMUX_ARCH" ] || [ "aarch64" = "$TERMUX_ARCH" ]; then
TERMUX_ARCH_BITS=64
Expand All @@ -288,7 +289,6 @@ termux_step_setup_variables() {
TERMUX_D8=$ANDROID_HOME/build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/d8

TERMUX_COMMON_CACHEDIR="$TERMUX_TOPDIR/_cache"
TERMUX_DEBDIR="$TERMUX_SCRIPTDIR/debs"
TERMUX_ELF_CLEANER=$TERMUX_COMMON_CACHEDIR/termux-elf-cleaner

export prefix=${TERMUX_PREFIX}
Expand Down

0 comments on commit e45ad0d

Please sign in to comment.