30 lines
1000 B
Plaintext
30 lines
1000 B
Plaintext
# 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
|
|
|
|
name=lldb
|
|
version=18.1.3
|
|
release=1
|
|
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)
|
|
|
|
build() {
|
|
mv cmake-$version.src cmake
|
|
|
|
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" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D LLVM_LINK_LLVM_DYLIB=ON \
|
|
-D LLDB_USE_SYSTEM_SIX=1 \
|
|
-Wno-dev
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
/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
|
|
}
|