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