Skip to content

Commit

Permalink
scripts: add variable TERMUX_PKG_NO_REPLACE_GUESS_SCRIPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
truboxl committed Jan 12, 2025
1 parent f4c1d0b commit 8ba7b11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/termux_step_replace_guess_scripts.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
termux_step_replace_guess_scripts() {
[ "$TERMUX_PKG_METAPACKAGE" = "true" ] && return
[ "$TERMUX_PKG_NO_REPLACE_GUESS_SCRIPTS" = "true" ] && return

cd "$TERMUX_PKG_SRCDIR"
find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \;
Expand Down
1 change: 1 addition & 0 deletions scripts/build/termux_step_setup_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ termux_step_setup_variables() {
TERMUX_PKG_MASSAGEDIR=$TERMUX_TOPDIR/$TERMUX_PKG_NAME/massage
TERMUX_PKG_METAPACKAGE=false
TERMUX_PKG_NO_ELF_CLEANER=false # set this to true to disable running of termux-elf-cleaner on built binaries
TERMUX_PKG_NO_REPLACE_GUESS_SCRIPTS=false # if true, find and replace config.guess and config.sub in source directory
TERMUX_PKG_NO_SHEBANG_FIX=false # if true, skip fixing shebang accordingly to TERMUX_PREFIX
TERMUX_PKG_NO_SHEBANG_FIX_FILES="" # files to be excluded from fixing shebang
TERMUX_PKG_NO_STRIP=false # set this to true to disable stripping binaries
Expand Down

0 comments on commit 8ba7b11

Please sign in to comment.