mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:47:14 +08:00
f3a60920d6
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
72 lines
2.4 KiB
Bash
72 lines
2.4 KiB
Bash
# $Id$
|
|
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
|
|
|
|
pkgname=lldb
|
|
pkgver=6.0.0
|
|
pkgrel=1
|
|
pkgdesc="Next generation, high-performance debugger"
|
|
arch=('x86_64')
|
|
url="https://lldb.llvm.org/"
|
|
license=('custom:University of Illinois/NCSA Open Source License')
|
|
depends=('llvm-libs' 'clang' 'python2' 'python2-six')
|
|
makedepends=('llvm' 'cmake' 'ninja' 'swig')
|
|
source=(https://releases.llvm.org/$pkgver/$pkgname-$pkgver.src.tar.xz{,.sig}
|
|
PR36630-install-lldb-SB-headers.patch
|
|
PR36687-fix-standalone-LLVM_LINK_LLVM_DYLIB-builds.patch)
|
|
sha256sums=('46f54c1d7adcd047d87c0179f7b6fa751614f339f4f87e60abceaa45f414d454'
|
|
'SKIP'
|
|
'5b765f7420bbf3fb4521a2f2022a40ba4f703ab555fe61e88a6d6617a6713921'
|
|
'1f146b2009553c6a5f76fa077b621fba66db5ef26c9790e9f64e608304d099e5')
|
|
validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
|
|
validpgpkeys+=('11E521D646982372EB577A1F8F0871F202119294') # Tom Stellard <tom@stellard.net>
|
|
|
|
prepare() {
|
|
cd "$srcdir/$pkgname-$pkgver.src"
|
|
mkdir build
|
|
|
|
# https://bugs.llvm.org/show_bug.cgi?id=36630
|
|
patch -Np1 -i ../PR36630-install-lldb-SB-headers.patch
|
|
|
|
# https://bugs.llvm.org/show_bug.cgi?id=36687
|
|
patch -Np1 -i ../PR36687-fix-standalone-LLVM_LINK_LLVM_DYLIB-builds.patch
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver.src/build"
|
|
|
|
cmake .. -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
|
|
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
|
|
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
-DLLDB_USE_SYSTEM_SIX=1
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver.src/build"
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
|
install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
# Install possibly outdated man page; better than nothing!
|
|
install -Dm644 ../docs/lldb.1 "$pkgdir/usr/share/man/man1/lldb.1"
|
|
|
|
# Remove static libraries
|
|
rm "$pkgdir"/usr/lib/*.a
|
|
|
|
# Relocate custom readline.so module which links agaisnt libedit
|
|
mv "$pkgdir"/usr/lib/python2.7/site-packages/{,lldb/}readline.so
|
|
sed -i '2isys.path.insert(1, "/usr/lib/python2.7/site-packages/lldb")' \
|
|
"$pkgdir/usr/lib/python2.7/site-packages/lldb/embedded_interpreter.py"
|
|
|
|
# Compile Python scripts
|
|
python2 -m compileall "$pkgdir"
|
|
python2 -O -m compileall "$pkgdir"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|