mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:24:37 +08:00
llvm now split to different packages - llvm, llvm-libs (in dir llvm/): the main llvm lib and functional part - lld: (dynamic) linker of llvm - lldb: debugger of llvm - compiler-rt: runtime compiler lib for clang to build and run - clang: C/C++ compiler from llvm project they should stay in same release version the update sequence is: (optional ocaml group->) llvm -> lld -> compiler-rt -> clang
49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# $Id$
|
|
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
|
|
|
|
pkgname=compiler-rt
|
|
pkgver=6.0.0
|
|
pkgrel=1
|
|
pkgdesc="Compiler runtime libraries for clang"
|
|
arch=('x86_64')
|
|
url="https://compiler-rt.llvm.org/"
|
|
license=('custom:University of Illinois/NCSA Open Source License')
|
|
depends=('gcc-libs')
|
|
makedepends=('llvm' 'cmake' 'ninja' 'python')
|
|
# Build 32-bit compiler-rt libraries on x86_64 (FS#41911)
|
|
makedepends_x86_64=('lib32-gcc-libs')
|
|
options=('staticlibs')
|
|
source=(https://releases.llvm.org/$pkgver/$pkgname-$pkgver.src.tar.xz{,.sig})
|
|
sha256sums=('d0cc1342cf57e9a8d52f5498da47a3b28d24ac0d39cbc92308781b3ee0cea79a'
|
|
'SKIP')
|
|
validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
|
|
validpgpkeys+=('11E521D646982372EB577A1F8F0871F202119294') # Tom Stellard <tom@stellard.net>
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver.src"
|
|
mkdir build
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver.src/build"
|
|
|
|
cmake .. -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver.src/build"
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
|
install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
mkdir -p "$pkgdir/usr/lib/clang/$pkgver/lib"
|
|
mv "$pkgdir"/usr/lib/{linux,clang/$pkgver/lib/}
|
|
mv "$pkgdir"/usr/{*.txt,lib/clang/$pkgver/}
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|