termux_step_patch_package.sh: handle new variables
This commit is contained in:
parent
6fa120c617
commit
a8892f890a
@ -11,10 +11,13 @@ termux_step_patch_package() {
|
|||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for patch in $TERMUX_PKG_BUILDER_DIR/*.patch{$TERMUX_ARCH_BITS,} $DEBUG_PATCHES; do
|
for patch in $TERMUX_PKG_BUILDER_DIR/*.patch{$TERMUX_ARCH_BITS,} $DEBUG_PATCHES; do
|
||||||
echo "Applying patch: $(basename $patch)"
|
echo "Applying patch: $(basename $patch)"
|
||||||
test -f "$patch" && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" "$patch" | \
|
test -f "$patch" && sed \
|
||||||
sed "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" | \
|
-e "s%\@TERMUX_APP_PACKAGE\@%${TERMUX_APP_PACKAGE}%g" \
|
||||||
sed "s%\@TERMUX_APP_PACKAGE\@%${TERMUX_APP_PACKAGE}%g" | \
|
-e "s%\@TERMUX_BASE_DIR\@%${TERMUX_BASE_DIR}%g" \
|
||||||
patch --silent -p1
|
-e "s%\@TERMUX_CACHE_DIR\@%${TERMUX_CACHE_DIR}%g" \
|
||||||
|
-e "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" \
|
||||||
|
-e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \
|
||||||
|
"$patch" | patch --silent -p1
|
||||||
done
|
done
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user