PortValhalla/scripts/Arch/Software/yay/install.sh

14 lines
316 B
Bash
Raw Normal View History

2023-04-03 20:59:06 +00:00
#!/bin/bash
2023-04-04 15:18:53 +00:00
if ! command -v yay > /dev/null 2>&1
then
sudo pacman --noconfirm -S --needed git
2023-04-04 15:18:53 +00:00
contextRoot="$(mktemp -d)";
git clone https://aur.archlinux.org/yay.git "$contextRoot";
pushd "$contextRoot" > /dev/null;
makepkg --noconfirm -si;
popd > /dev/null;
2024-03-08 22:59:30 +00:00
rm -rf "$contextRoot";
2023-04-04 15:18:53 +00:00
fi;