This commit is contained in:
pika 2025-05-11 14:45:09 +02:00
parent 6ef963f06e
commit 46597d1677

View file

@ -35,6 +35,7 @@
}
installBuildDependencies() {
echo_info "Checking build dependencies, and installs missing.."
local depsDebian=(ninja-build gettext cmake curl build-essential)
local depsFedora=(ninja-build cmake gcc make gettext curl glibc-gconv-extra)
local depsOpensuse=(ninja cmake gcc-c++ gettext-tools curl)
@ -56,6 +57,7 @@
cloneSources() {
local cloneDir="$(mktemp -d)"
echo_info "Cloning neovim sources into tempdir at $cloneDir"
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
if command_exists git; then
@ -71,8 +73,10 @@
}
makeInstall() {
echo_info "Compiling neovim from source"
if run make CMAKE_BUILD_TYPE=RelWithDebInfo; then
$_sudo make install
echo_info "Installing neovim.."
run $_sudo make install
else
echo_error "Failure while building!"
exit 1