This commit is contained in:
pika 2025-05-18 19:37:28 +02:00
parent ef57fa9cdb
commit 1d56da5b2f
2 changed files with 10 additions and 8 deletions

View file

@ -59,7 +59,7 @@
} }
getDependencies() { getDependencies() {
echo_info "Checking build dependencies, and installs missing.." echo_pkg "Checking build dependencies, and installs missing.."
local depsDebian=(git ninja-build gettext cmake curl build-essential) local depsDebian=(git ninja-build gettext cmake curl build-essential)
local depsFedora=(git ninja-build cmake gcc make gettext curl glibc-gconv-extra) local depsFedora=(git ninja-build cmake gcc make gettext curl glibc-gconv-extra)
@ -79,7 +79,9 @@
declare -n pkgArray="${deps[$distro]}" declare -n pkgArray="${deps[$distro]}"
case "$distro" in case "$distro" in
debian | ubuntu | arch | fedora | alpine | opensuse) checkAndInstall "${pkgArray[@]}" ;; debian | ubuntu | arch | fedora | alpine | opensuse)
checkAndInstall "${pkgArray[@]}"
;;
*) *)
echo_error "Cannot install for $distro" echo_error "Cannot install for $distro"
exit 1 exit 1
@ -89,7 +91,7 @@
cloneSources() { cloneSources() {
cloneDir="$(mktemp -d)" cloneDir="$(mktemp -d)"
echo_info "Cloning neovim sources into tempdir at $cloneDir/neovim" echo_pkg "Cloning neovim sources into tempdir at $cloneDir/neovim"
cd $cloneDir || mkdir $cloneDir && cd $cloneDir cd $cloneDir || mkdir $cloneDir && cd $cloneDir
if command_exists git; then if command_exists git; then
@ -106,9 +108,9 @@
} }
makeInstall() { makeInstall() {
echo_info "Compiling neovim from source" echo_pkg "Compiling neovim from source"
if run make CMAKE_BUILD_TYPE=RelWithDebInfo; then if run make CMAKE_BUILD_TYPE=RelWithDebInfo; then
echo_info "Installing neovim.." echo_pkg "Installing neovim.."
run $_sudo make install run $_sudo make install
else else
echo_error "Failure while building!" echo_error "Failure while building!"

View file

@ -16,8 +16,8 @@
PACKAGE=rofi PACKAGE=rofi
if command_exists "$PACKAGE"; then if command_exists "$PACKAGE"; then
echo "${RED}$PACKAGE ${BRIGHT_RED}is already installed!${NC}" echo "$PACKAGE is already installed!"
echo "${BOLD}${RED}Exiting now!${NC}" echo "Exiting now!"
exit 69 exit 69
fi fi
@ -135,7 +135,7 @@
echo_error "Error when installing dependencies.." echo_error "Error when installing dependencies.."
fi fi
rofi_clone_and_build rofi_clone_and_build </dev/tty
} }
if getImports; then if getImports; then