contrib/lldb/Pkgfile

25 lines
778 B
Plaintext
Raw Normal View History

2019-12-29 11:40:19 +01:00
# Description: LLDB is a next generation, high-performance debugger
# URL: https://lldb.llvm.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: clang python3-six swig
2019-12-29 11:40:19 +01:00
name=lldb
2020-07-23 00:46:22 +02:00
version=10.0.1
release=1
2019-12-29 11:40:19 +01:00
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lldb-$version.src.tar.xz)
build() {
2020-07-23 00:46:22 +02:00
cmake -S$name-$version.src -Bbuild -GNinja \
2019-12-29 11:40:19 +01:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DLLDB_USE_SYSTEM_SIX=1
2020-07-23 00:46:22 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
python3 -m compileall -d $name-$version.src $PKG
python3 -O -m compileall -d $name-$version.src $PKG
python3 -OO -m compileall -d $name-$version.src $PKG
2019-12-29 11:40:19 +01:00
}