diff --git a/packages/lldb/Editline.h.patch b/packages/lldb/Editline.h.patch new file mode 100644 index 000000000..1e4f399e8 --- /dev/null +++ b/packages/lldb/Editline.h.patch @@ -0,0 +1,14 @@ +--- ../cache/lldb-6.0.0.src/include/lldb/Host/Editline.h 2017-05-25 20:12:30.000000000 +0000 ++++ ./include/lldb/Host/Editline.h 2018-04-13 09:51:29.606274657 +0000 +@@ -56,10 +56,9 @@ + + #if defined(_WIN32) + #include "lldb/Host/windows/editlinewin.h" +-#elif !defined(__ANDROID__) +-#include + #endif + ++#include + #include + #include + #include diff --git a/packages/lldb/build.sh b/packages/lldb/build.sh new file mode 100644 index 000000000..459792c7e --- /dev/null +++ b/packages/lldb/build.sh @@ -0,0 +1,17 @@ +TERMUX_PKG_HOMEPAGE=https://lldb.llvm.org +TERMUX_PKG_DESCRIPTION="lldb debugger" +TERMUX_PKG_VERSION=6.0.0 +TERMUX_PKG_SRCURL=http://releases.llvm.org/${TERMUX_PKG_VERSION}/lldb-$TERMUX_PKG_VERSION.src.tar.xz +TERMUX_PKG_SHA256=46f54c1d7adcd047d87c0179f7b6fa751614f339f4f87e60abceaa45f414d454 +TERMUX_PKG_DEPENDS="libedit, libllvm" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DLLVM_CONFIG=$TERMUX_PREFIX/bin/llvm-config \ +-DLLDB_DISABLE_LIBEDIT=0 \ +-DLLDB_DISABLE_CURSES=0 \ +-DLLDB_DISABLE_PYTHON=1 \ +-DLLVM_ENABLE_TERMINFO=1" +termux_step_pre_configure() { + LDFLAGS+=" -Wl,--exclude-libs=ALL" +} +termux_step_post_make_install() { + cp $TERMUX_PKG_SRCDIR/docs/lldb.1 $TERMUX_PREFIX/share/man/man1 +}