0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 15:47:26 +00:00
Tee KOBAYASHI e00fbe5514 ndk-multilib: Exclude native stubs for shared libs
which are now installed with subpackage named ndk-multilib-native-stubs.
2023-03-26 00:21:09 +09: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