X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/542aab6b3ff4e1173a9c42890147e91fd2cc4ea0..379f7c794abb58b664410909cd53deeb489cdf5c:/build-package.sh diff --git a/build-package.sh b/build-package.sh index 39a4a612..1c118c00 100755 --- a/build-package.sh +++ b/build-package.sh @@ -157,6 +157,8 @@ termux_step_handle_arguments() { if [ ! -d "$1" ]; then termux_error_exit "'$1' seems to be a path but is not a directory"; fi export TERMUX_PKG_BUILDER_DIR TERMUX_PKG_BUILDER_DIR=$(realpath "$1") + # Skip depcheck for external package: + TERMUX_SKIP_DEPCHECK=true else # Package name: if [ -n "${TERMUX_IS_DISABLED=""}" ]; then @@ -348,7 +350,12 @@ termux_step_start_build() { # scripts can assume that it works on both builder and host later on: ln -f -s /bin/sh "$TERMUX_PREFIX/bin/sh" - TERMUX_ELF_CLEANER_SRC=$TERMUX_SCRIPTDIR/packages/termux-elf-cleaner/termux-elf-cleaner.cpp + local TERMUX_ELF_CLEANER_SRC=$TERMUX_COMMON_CACHEDIR/termux-elf-cleaner.cpp + local TERMUX_ELF_CLEANER_VERSION=$(bash -c ". $TERMUX_SCRIPTDIR/packages/termux-elf-cleaner/build.sh; echo \$TERMUX_PKG_VERSION") + termux_download \ + https://raw.githubusercontent.com/termux/termux-elf-cleaner/v$TERMUX_ELF_CLEANER_VERSION/termux-elf-cleaner.cpp \ + $TERMUX_ELF_CLEANER_SRC \ + 11a38372f4d0e36b7556382c7ecffecae35cee8b68daaee2dbee025f758e17ee if [ "$TERMUX_ELF_CLEANER_SRC" -nt "$TERMUX_ELF_CLEANER" ]; then g++ -std=c++11 -Wall -Wextra -pedantic -Os "$TERMUX_ELF_CLEANER_SRC" -o "$TERMUX_ELF_CLEANER" fi