diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -2,7 +2,7 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -DEPENDENCIES = neomutt curl msmtp pass gettext +DEPENDENCIES = neomutt curl msmtp pass gettext urlview urlscan NON_EXEC_DEPS = isync ca-certificates check-dependencies: @@ -53,7 +53,21 @@ install-dependencies: sudo dnf install -y $(DEPENDENCIES); \ elif command -v pacman >/dev/null 2>&1; then \ echo "Using pacman to install dependencies..."; \ - sudo pacman -S --needed $(DEPENDENCIES); \ + if ! sudo pacman -S --needed $(DEPENDENCIES); then \ + if command -v yay >/dev/null 2>&1; then \ + echo "Using yay to install dependencies..."; \ + yay -S $(DEPENDENCIES); \ + elif command -v paru >/dev/null 2>&1; then \ + echo "Using paru to install dependencies..."; \ + paru -S $(DEPENDENCIES); \ + else \ + echo "Error: No AUR helper found. Please install dependencies manually."; \ + exit 1; \ + fi; \ + fi; \ + elif command -v rpm >/dev/null 2>&1; then \ + echo "Using rpm to install dependencies..."; \ + sudo rpm -i $(DEPENDENCIES); \ elif command -v zypper >/dev/null 2>&1; then \ echo "Using zypper to install dependencies..."; \ sudo zypper install -y $(DEPENDENCIES); \ |
