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-15 23:30:44 +01:00
|
|
|
sudo "$PACKAGER" -S --needed --noconfirm base-devel
|
2024-08-15 22:23:21 +01:00
|
|
|
cd /opt && sudo git clone https://aur.archlinux.org/paru.git && sudo chown -R "$USER": ./paru
|
|
|
|
cd paru && makepkg --noconfirm -si
|
|
|
|
echo "Paru installed"
|
|
|
|
else
|
|
|
|
echo "Paru already installed"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unsupported package manager: $PACKAGER"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
|
|
|
installDepend
|