This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-07 22:23:52 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-03-22 11:09:02 -05:00
|
|
|
echo "Installing yay as $(whoami)"
|
2020-11-07 22:23:52 -06:00
|
|
|
REPOSITORY_PATH="/tmp/provisioning"
|
2021-03-22 10:47:23 -05:00
|
|
|
sudo pacman -S --needed --noconfirm git base-devel
|
2020-11-07 22:23:52 -06:00
|
|
|
mkdir -p "$REPOSITORY_PATH"
|
|
|
|
rm -rf "$REPOSITORY_PATH/yay"
|
2021-03-22 11:09:02 -05:00
|
|
|
git clone https://aur.archlinux.org/yay-bin.git "$REPOSITORY_PATH/yay"
|
|
|
|
cd "$REPOSITORY_PATH/yay" || exit 1
|
2021-03-22 10:47:23 -05:00
|
|
|
makepkg --noconfirm -si
|
2021-03-22 11:09:02 -05:00
|
|
|
yay -S --noconfirm yay-bin
|
2020-11-07 22:23:52 -06:00
|
|
|
rm -rf "$REPOSITORY_PATH/yay"
|