build-package: mv termux_step_replace_guess_scripts to scripts/build

This commit is contained in:
Henrik Grimler 2019-02-27 19:39:41 +01:00 committed by Leonid Pliushch
parent 5389a1a4e2
commit 38d3f22377
2 changed files with 6 additions and 5 deletions

View File

@ -68,11 +68,7 @@ source scripts/build/termux_step_setup_toolchain.sh
source scripts/build/termux_step_patch_package.sh
# Replace autotools build-aux/config.{sub,guess} with ours to add android targets.
termux_step_replace_guess_scripts() {
cd "$TERMUX_PKG_SRCDIR"
find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \;
find . -name config.guess -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.guess" '{}' \;
}
source scripts/build/termux_step_replace_guess_scripts.sh
# For package scripts to override. Called in $TERMUX_PKG_BUILDDIR.
termux_step_pre_configure() {

View File

@ -0,0 +1,5 @@
termux_step_replace_guess_scripts() {
cd "$TERMUX_PKG_SRCDIR"
find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \;
find . -name config.guess -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.guess" '{}' \;
}