From 7a6160529c8ec26bbcbca03468fde5cabcc88b48 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sun, 12 Feb 2023 04:34:30 +0000 Subject: [PATCH] new package: llvm-mingw-w64-libcompiler-rt --- .../llvm-mingw-w64-libcompiler-rt/build.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/llvm-mingw-w64-libcompiler-rt/build.sh diff --git a/packages/llvm-mingw-w64-libcompiler-rt/build.sh b/packages/llvm-mingw-w64-libcompiler-rt/build.sh new file mode 100644 index 0000000000..4d67be7386 --- /dev/null +++ b/packages/llvm-mingw-w64-libcompiler-rt/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=https://gcc.gnu.org/ +TERMUX_PKG_DESCRIPTION="Compiler runtime libraries for LLVM-MinGW" +TERMUX_PKG_LICENSE="Apache-2.0" +TERMUX_PKG_MAINTAINER="@licy183" +TERMUX_PKG_VERSION=20220906 +TERMUX_PKG_SRCURL=https://github.com/mstorsjo/llvm-mingw/releases/download/$TERMUX_PKG_VERSION/llvm-mingw-$TERMUX_PKG_VERSION-ucrt-ubuntu-18.04-x86_64.tar.xz +TERMUX_PKG_SHA256=ee00708bdd65eeaa88d5fa89ad7e3fa1d6bae8093ee4559748e431e55f7568ec +TERMUX_PKG_PLATFORM_INDEPENDENT=true +TERMUX_PKG_NO_STATICSPLIT=true + +termux_step_make_install() { + # Install compier-rt libraries + mkdir -p $TERMUX_PREFIX/opt/llvm-mingw-w64/opt/compiler-rt/ + mv $TERMUX_PKG_SRCDIR/lib/clang/*/lib/windows $TERMUX_PREFIX/opt/llvm-mingw-w64/opt/compiler-rt/ +} + +termux_step_install_license() { + mkdir -p $TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME + cp $TERMUX_PKG_SRCDIR/LICENSE.TXT $TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME/ +}