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