From 1e12d82d1b369fc01dc3f92087a4b016fb885761 Mon Sep 17 00:00:00 2001 From: WMCB-Tech Date: Tue, 5 Oct 2021 16:25:32 +0800 Subject: [PATCH] use `dpkg --print-architecture` instead of `uname -m` (#43) Termux 32-bit Installations on 64-bit OS can report architecture differently use "dpkg --print-architecture" to report the correct current arch instead based on Termux repo architecture information --- build_termux_package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_termux_package b/build_termux_package index e96c1bb..8821a4d 100755 --- a/build_termux_package +++ b/build_termux_package @@ -41,7 +41,7 @@ cat < $CONTROL_DIR/postinst #!/data/data/com.termux/files/usr/bin/bash [ -z "\$PREFIX" ] && PREFIX=/data/data/com.termux/files/usr ABI= -case \`uname -m\` in +case \`dpkg --print-architecture\` in arm) ABI=armeabi-v7a;; aarch64) ABI=arm64-v8a;; i686) ABI=x86;;