X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/cd83eaf6692ae1ab6b59754ce85a670eaace3fda..6ee1d717a5b7f36415a970143100fc1c3127438b:/build-package.sh diff --git a/build-package.sh b/build-package.sh index d950d678..4f733453 100755 --- a/build-package.sh +++ b/build-package.sh @@ -43,7 +43,7 @@ if [ $TERMUX_ARCH = "arm" ]; then TERMUX_HOST_PLATFORM="${TERMUX_HOST_PLATFORM}e : ${TERMUX_GCC_VERSION:="4.9"} : ${TERMUX_API_LEVEL:="21"} : ${TERMUX_STANDALONE_TOOLCHAIN:="$HOME/lib/android-standalone-toolchain-${TERMUX_ARCH}-api${TERMUX_API_LEVEL}-gcc${TERMUX_GCC_VERSION}"} -: ${TERMUX_ANDROID_BUILD_TOOLS_VERSION:="22.0.1"} +: ${TERMUX_ANDROID_BUILD_TOOLS_VERSION:="23.0.0"} # We do not put all of build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/ into PATH # to avoid stuff like arm-linux-androideabi-ld there to conflict with ones from # the standalone toolchain. @@ -423,13 +423,13 @@ termux_step_massage () { if [ "$TERMUX_DEBUG" = "" ]; then find . -type f | xargs file | grep -E "(executable|shared object)" | grep ELF | cut -f 1 -d : | xargs $STRIP --strip-unneeded --preserve-dates -R '.gnu.version*' fi - # Remove DT_ entries which the android 5.1 linker warns about: - find . -type f | xargs $TERMUX_ELF_CLEANER # Fix shebang paths: for file in `find . -type f`; do head -c 100 $file | grep -E "^#\!.*\\/bin\\/.*" | grep -q -E -v "^#\! ?\\/system" && sed --follow-symlinks -i -E "s@^#\!(.*)/bin/(.*)@#\!$TERMUX_PREFIX/bin/\2@" $file done set -e -o pipefail + # Remove DT_ entries which the android 5.1 linker warns about: + find . -type f -print0 | xargs -0 $TERMUX_ELF_CLEANER test ! -z "$TERMUX_PKG_RM_AFTER_INSTALL" && rm -Rf $TERMUX_PKG_RM_AFTER_INSTALL @@ -608,7 +608,9 @@ cd $TERMUX_PKG_BUILDDIR termux_step_post_make_install cd $TERMUX_PKG_MASSAGEDIR termux_step_extract_into_massagedir +cd $TERMUX_PKG_MASSAGEDIR termux_step_massage +cd $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX termux_step_post_massage # Create data tarball containing files to package: