Hyprland-dotfiles/.install/yay.sh

21 lines
648 B
Bash
Raw Normal View History

2023-11-10 16:12:15 -05:00
# ------------------------------------------------------
# Check if yay is installed
# ------------------------------------------------------
if sudo pacman -Qs yay > /dev/null ; then
2024-01-25 14:55:32 -05:00
echo ":: yay is already installed!"
2023-11-10 16:12:15 -05:00
else
2024-05-27 07:39:44 -04:00
echo -e "${GREEN}"
figlet "yay"
echo -e "${NONE}"
2024-01-25 14:55:32 -05:00
echo ":: yay is not installed. Starting the installation!"
2023-11-10 16:12:15 -05:00
_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
2024-01-25 14:55:32 -05:00
echo ":: yay has been installed successfully."
2023-11-10 16:12:15 -05:00
fi
2024-05-27 07:39:44 -04:00
echo