From dc6476e9eadbdd6476a870cacc4ce63dba99c51c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 19 Apr 2016 17:05:07 -0400 Subject: [PATCH] build-package.sh: Allow @TERMUX_HOME@ in patches --- build-package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index bd66cd7fd..6b3b2f83a 100755 --- a/build-package.sh +++ b/build-package.sh @@ -326,7 +326,9 @@ termux_step_patch_package () { cd $TERMUX_PKG_SRCDIR # Suffix patch with ".patch32" or ".patch64" to only apply for these bitnesses: for patch in $TERMUX_PKG_BUILDER_DIR/*.patch{$TERMUX_ARCH_BITS,}; do - test -f $patch && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $patch | patch -p1 + test -f $patch && sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $patch | \ + sed "s%\@TERMUX_HOME\@%${TERMUX_ANDROID_HOME}%g" | \ + patch -p1 done find . -name config.sub -exec chmod u+w '{}' \; -exec cp $TERMUX_COMMON_CACHEDIR/config.sub '{}' \;