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
|
2020-04-25 16:55:46 +02:00
|
|
|
# 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-11-08 12:51:38 +01:00
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:58:03 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 12:51:38 +01:00
|
|
|
-D PYTHON_EXECUTABLE=/usr/bin/python3 \
|
|
|
|
-D LLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
-D LLDB_USE_SYSTEM_SIX=1 \
|
|
|
|
-Wno-dev
|
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
|
|
|
}
|