Files
termux-packages/packages/ndk-multilib/postinst-header.in
termux-pacman-bot d6b83daee5 ndk-multilib: Fix installation
of lib{c,dl,m}.a.
2023-03-27 19:24:30 +00:00

19 lines
552 B
Bash

#!@TERMUX_PREFIX@/bin/sh
pkg_format="@TERMUX_PACKAGE_FORMAT@"
pkg_arch=unknown
case "$pkg_format" in
debian ) pkg_arch=$(dpkg --print-architecture) ;;
pacman ) pkg_arch=$(pacman-conf Architecture) ;;
* ) echo "Warning: unknown package format: $pkg_format" ;;
esac
native_triple=unknown
case "$pkg_arch" in
aarch64 ) native_triple=aarch64-linux-android ;;
arm ) native_triple=arm-linux-androideabi ;;
i686 ) native_triple=i686-linux-android ;;
x86_64 ) native_triple=x86_64-linux-android ;;
* ) echo "Warning: unknown arch: $pkg_arch" ;;
esac