Hyprland-dotfiles/.install/yay.sh
Stephan Raabe 99e132b989 Updates
2024-05-27 13:39:44 +02:00

21 lines
648 B
Bash

# ------------------------------------------------------
# Check if yay is installed
# ------------------------------------------------------
if sudo pacman -Qs yay > /dev/null ; then
echo ":: yay is already installed!"
else
echo -e "${GREEN}"
figlet "yay"
echo -e "${NONE}"
echo ":: yay is not installed. Starting the installation!"
_installPackagesPacman "base-devel"
SCRIPT=$(realpath "$0")
temp_path=$(dirname "$SCRIPT")
echo $temp_path
git clone https://aur.archlinux.org/yay-git.git ~/yay-git
cd ~/yay-git
makepkg -si
cd $temp_path
echo ":: yay has been installed successfully."
fi
echo