[arch-commits] Commit in lldb/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Tue Mar 26 01:14:02 UTC 2019
Date: Tuesday, March 26, 2019 @ 01:14:02
Author: foutrelis
Revision: 349203
archrelease: copy trunk to staging-x86_64
Added:
lldb/repos/staging-x86_64/
lldb/repos/staging-x86_64/PKGBUILD
(from rev 349202, lldb/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: lldb/repos/staging-x86_64/PKGBUILD (from rev 349202, lldb/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-03-26 01:14:02 UTC (rev 349203)
@@ -0,0 +1,60 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Jan "heftig" Steffens <jan.steffens at gmail.com>
+
+pkgname=lldb
+pkgver=8.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})
+sha256sums=('49918b9f09816554a20ac44c5f85a32dc0a7a00759b3259e78064d674eac0373'
+ 'SKIP')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+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 \
+ -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:
More information about the arch-commits
mailing list