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
|
||||
for patch in $TERMUX_PKG_BUILDER_DIR/*.patch{$TERMUX_ARCH_BITS,} $DEBUG_PATCHES; do
|
||||
echo "Applying patch: $(basename $patch)"
|
||||
test -f "$patch" && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" "$patch" | \
|
||||
sed "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" | \
|
||||
sed "s%\@TERMUX_APP_PACKAGE\@%${TERMUX_APP_PACKAGE}%g" | \
|
||||
patch --silent -p1
|
||||
test -f "$patch" && sed \
|
||||
-e "s%\@TERMUX_APP_PACKAGE\@%${TERMUX_APP_PACKAGE}%g" \
|
||||
-e "s%\@TERMUX_BASE_DIR\@%${TERMUX_BASE_DIR}%g" \
|
||||
-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
|
||||
shopt -u nullglob
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user