linutil/tabs/system-setup/arch/paru-setup.sh

27 lines
748 B
Bash
Raw Normal View History

2024-08-15 22:23:21 +01:00
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
installDepend() {
case $PACKAGER in
pacman)
if ! command_exists paru; then
echo "Installing paru as AUR helper..."
2024-08-23 14:12:47 +01:00
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm base-devel
cd /opt && $ESCALATION_TOOL git clone https://aur.archlinux.org/paru.git && $ESCALATION_TOOL chown -R "$USER": ./paru
2024-08-15 22:23:21 +01:00
cd paru && makepkg --noconfirm -si
echo "Paru installed"
else
echo "Paru already installed"
fi
;;
*)
echo "Unsupported package manager: $PACKAGER"
;;
esac
}
checkEnv
2024-08-23 14:12:47 +01:00
checkEscalationTool
installDepend