mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-06 01:52:20 +00:00
- Fixes https://github.com/termux/termux-packages/issues/26838 - Fixes partly https://github.com/termux/termux-packages/issues/23401 - After https://github.com/termux/termux-packages/pull/25627, it is believed that the custom definition of `__ANDROID_API__` is no longer needed, because: - There is no longer a way to reproduce any of the errors that it fixed before - Even if there were a way to, it would no longer be able to fix those errors by itself because of the update to NDK r28c (see https://github.com/termux/termux-packages/issues/25622 for more details) - It is replaced with https://github.com/termux/termux-packages/pull/25627, which does what it used to a different way that also fixes other errors and seems more reliable
33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://libcxx.llvm.org/
|
|
TERMUX_PKG_DESCRIPTION="C++ Standard Library"
|
|
TERMUX_PKG_LICENSE="NCSA"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
# Version should be equal to TERMUX_NDK_{VERSION_NUM,REVISION} in
|
|
# scripts/properties.sh
|
|
TERMUX_PKG_VERSION=28c
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://dl.google.com/android/repository/android-ndk-r${TERMUX_PKG_VERSION}-linux.zip
|
|
TERMUX_PKG_SHA256=dfb20d396df28ca02a8c708314b814a4d961dc9074f9a161932746f815aa552f
|
|
TERMUX_PKG_AUTO_UPDATE=false
|
|
TERMUX_PKG_ESSENTIAL=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_get_source() {
|
|
mkdir -p "$TERMUX_PKG_SRCDIR"
|
|
if [ "$TERMUX_ON_DEVICE_BUILD" = "true" ]; then
|
|
termux_download_src_archive
|
|
cd $TERMUX_PKG_TMPDIR
|
|
termux_extract_src_archive
|
|
mv "$TERMUX_PKG_SRCDIR/android-ndk-r$TERMUX_PKG_VERSION"/* "$TERMUX_PKG_SRCDIR"
|
|
else
|
|
local lib_path="toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/${TERMUX_HOST_PLATFORM}"
|
|
mkdir -p "$TERMUX_PKG_SRCDIR"/"$lib_path"
|
|
cp "$NDK"/"$lib_path"/libc++_shared.so "$TERMUX_PKG_SRCDIR"/"$lib_path"
|
|
fi
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -m700 -t "$TERMUX_PREFIX"/lib \
|
|
toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/"${TERMUX_HOST_PLATFORM}"/libc++_shared.so
|
|
}
|