Browse Source

build-package: mv termux_step_replace_guess_scripts to scripts/build

android-5
Henrik Grimler 6 years ago
committed by Leonid Plyushch
parent
commit
8e759381d2
  1. 6
      build-package.sh
  2. 5
      scripts/build/termux_step_replace_guess_scripts.sh

6
build-package.sh

@ -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() {

5
scripts/build/termux_step_replace_guess_scripts.sh

@ -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" '{}' \;
}
Loading…
Cancel
Save