2021-02-17 10:22:42 +01:00
|
|
|
# Description: LLDB is a next generation, high-performance debugger
|
|
|
|
# URL: https://lldb.llvm.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-10-01 10:33:12 +02:00
|
|
|
# Depends on: clang python3-six swig
|
2021-02-17 10:22:42 +01:00
|
|
|
|
|
|
|
name=lldb
|
2022-11-30 21:14:21 +01:00
|
|
|
version=15.0.6
|
2022-02-05 12:58:18 +01:00
|
|
|
release=1
|
2022-09-23 07:54:27 +02:00
|
|
|
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lldb-$version.src.tar.xz
|
|
|
|
https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)
|
2021-02-17 10:22:42 +01:00
|
|
|
|
|
|
|
build() {
|
2022-09-23 07:54:27 +02:00
|
|
|
cp -r $SRC/cmake-$version.src/Modules/* $name-$version.src/cmake/modules/.
|
|
|
|
|
2021-02-17 10:22:42 +01:00
|
|
|
cmake -S $name-$version.src -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2021-10-01 10:33:12 +02:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
2021-02-17 10:22:42 +01:00
|
|
|
-D LLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
-D LLDB_USE_SYSTEM_SIX=1 \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
|
2021-05-08 05:56:25 +02:00
|
|
|
/usr/bin/python3 -m compileall -d $name-$version.src $PKG
|
|
|
|
/usr/bin/python3 -O -m compileall -d $name-$version.src $PKG
|
|
|
|
/usr/bin/python3 -OO -m compileall -d $name-$version.src $PKG
|
2021-02-17 10:22:42 +01:00
|
|
|
}
|