1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
7 pkgdesc="Next generation, high-performance debugger"
9 url="https://lldb.llvm.org/"
10 license=('custom:Apache 2.0 with LLVM Exception')
11 depends=('llvm-libs' 'clang' 'python' 'python-six')
12 makedepends=('llvm' 'cmake' 'ninja' 'swig' 'python-sphinx')
13 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
14 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig})
15 sha256sums=('24c65bd5ec0d7cbc37bafdd7533b1783352708bf6338c403a72f47884e406dbd'
17 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
18 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
21 cd "$srcdir/$pkgname-$pkgver.src"
26 cd "$srcdir/$pkgname-$pkgver.src/build"
29 -DCMAKE_BUILD_TYPE=Release \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DLLVM_LINK_LLVM_DYLIB=ON \
32 -DCLANG_LINK_CLANG_DYLIB=ON \
33 -DLLVM_ENABLE_SPHINX=ON \
34 -DLLDB_USE_SYSTEM_SIX=1
35 ninja all docs-lldb-man
39 cd "$srcdir/$pkgname-$pkgver.src/build"
41 DESTDIR="$pkgdir" ninja install
42 install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
44 install -Dm644 docs/man/lldb.1 "$pkgdir/usr/share/man/man1/lldb.1"
46 # Compile Python scripts
47 python3 -m compileall "$pkgdir"
48 python3 -O -m compileall "$pkgdir"
49 python3 -OO -m compileall "$pkgdir"
52 # vim:set ts=2 sw=2 et: