summaryrefslogtreecommitdiff
path: root/lldb/Pkgfile
blob: e314888cdde6c76455cf19b97690c2e0899e7f12 (plain)
    1 # Description: LLDB is a next generation, high-performance debugger
    2 # URL: https://lldb.llvm.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: clang python3-six swig
    5 
    6 name=lldb
    7 version=15.0.7
    8 release=1
    9 source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lldb-$version.src.tar.xz
   10 	https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/cmake-$version.src.tar.xz)
   11 
   12 build() {
   13   cp -r $SRC/cmake-$version.src/Modules/* $name-$version.src/cmake/modules/.
   14 
   15   cmake -S $name-$version.src -B build -G Ninja \
   16     -D CMAKE_INSTALL_PREFIX=/usr \
   17     -D CMAKE_BUILD_TYPE=Release \
   18     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   19     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   20     -D LLVM_LINK_LLVM_DYLIB=ON \
   21     -D LLDB_USE_SYSTEM_SIX=1 \
   22     -Wno-dev
   23   cmake --build build
   24   DESTDIR=$PKG cmake --install build
   25 
   26   /usr/bin/python3 -m compileall -d $name-$version.src $PKG
   27   /usr/bin/python3 -O -m compileall -d $name-$version.src $PKG
   28   /usr/bin/python3 -OO -m compileall -d $name-$version.src $PKG
   29 }

Generated by cgit