You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
602 B
18 lines
602 B
6 years ago
|
termux_step_handle_hostbuild() {
|
||
|
if [ "x$TERMUX_PKG_HOSTBUILD" = "x" ]; then return; fi
|
||
|
|
||
|
cd "$TERMUX_PKG_SRCDIR"
|
||
|
for patch in $TERMUX_PKG_BUILDER_DIR/*.patch.beforehostbuild; do
|
||
|
test -f "$patch" && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" "$patch" | patch --silent -p1
|
||
|
done
|
||
|
|
||
|
local TERMUX_HOSTBUILD_MARKER="$TERMUX_PKG_HOSTBUILD_DIR/TERMUX_BUILT_FOR_$TERMUX_PKG_VERSION"
|
||
|
if [ ! -f "$TERMUX_HOSTBUILD_MARKER" ]; then
|
||
|
rm -Rf "$TERMUX_PKG_HOSTBUILD_DIR"
|
||
|
mkdir -p "$TERMUX_PKG_HOSTBUILD_DIR"
|
||
|
cd "$TERMUX_PKG_HOSTBUILD_DIR"
|
||
|
termux_step_host_build
|
||
|
touch "$TERMUX_HOSTBUILD_MARKER"
|
||
|
fi
|
||
|
}
|