diff --git a/packages/neovim/build.sh b/packages/neovim/build.sh index c6e1d538a..6c9c22aab 100644 --- a/packages/neovim/build.sh +++ b/packages/neovim/build.sh @@ -5,6 +5,14 @@ TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/master.zip TERMUX_PKG_NO_SRC_CACHE=yes TERMUX_PKG_DEPENDS="libuv, libmsgpack, libandroid-support, libluajit, libvterm, libtermkey" TERMUX_PKG_FOLDERNAME="neovim-master" +TERMUX_PKG_HOSTBUILD=true + +termux_step_host_build () { + cd $TERMUX_PKG_SRCDIR + make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$TERMUX_PKG_HOSTBUILD_DIR" install + make distclean + rm -Rf build/ +} termux_step_configure () { # Install dependencies on ubuntu: diff --git a/packages/neovim/cmake-GenerateHelptags.cmake.patch b/packages/neovim/cmake-GenerateHelptags.cmake.patch index fa6c03029..6bc6717ce 100644 --- a/packages/neovim/cmake-GenerateHelptags.cmake.patch +++ b/packages/neovim/cmake-GenerateHelptags.cmake.patch @@ -6,7 +6,7 @@ diff -u -r ../neovim-master/cmake/GenerateHelptags.cmake.in ./cmake/GenerateHelp file(WRITE ${EMPTY_FILE} "") execute_process( - COMMAND ${CMAKE_CURRENT_BINARY_DIR}/bin/nvim -+ COMMAND "vim" ++ COMMAND "${PROJECT_BINARY_DIR}/../host-build/bin/nvim" -u NONE -esX -c "helptags ++t ." diff --git a/packages/neovim/runtime-CMakeLists.txt.patch b/packages/neovim/runtime-CMakeLists.txt.patch index 0f5f278d2..ba45d1310 100644 --- a/packages/neovim/runtime-CMakeLists.txt.patch +++ b/packages/neovim/runtime-CMakeLists.txt.patch @@ -6,7 +6,7 @@ diff -u -r ../neovim-master/runtime/CMakeLists.txt ./runtime/CMakeLists.txt COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/runtime/doc ${GENERATED_RUNTIME_DIR}/doc - COMMAND "${PROJECT_BINARY_DIR}/bin/nvim" -+ COMMAND vim ++ COMMAND "${PROJECT_BINARY_DIR}/../host-build/bin/nvim" -u NONE -i NONE -esX