2023-11-10 16:12:15 -05:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Check if yay is installed
|
|
|
|
# ------------------------------------------------------
|
2023-11-25 11:46:54 -05:00
|
|
|
echo -e "${GREEN}"
|
2023-12-21 15:57:44 -05:00
|
|
|
figlet "yay"
|
2023-11-25 11:46:54 -05:00
|
|
|
echo -e "${NONE}"
|
2023-11-10 16:12:15 -05:00
|
|
|
if sudo pacman -Qs yay > /dev/null ; then
|
|
|
|
echo "yay is already installed!"
|
|
|
|
else
|
|
|
|
echo "yay is not installed. Will be installed now!"
|
|
|
|
_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 ""
|