my-scripts/installers/arch/scripts/aur-install.sh

22 lines
369 B
Bash
Raw Normal View History

2022-10-01 22:59:41 +00:00
#!/bin/sh
2022-11-19 19:20:55 +00:00
YAY_INSTALL_DIR="$HOME/.local/src/yay"
2022-10-01 22:59:41 +00:00
[ -z "$AUR_PROGS_FILE" ] && AUR_PROGS_FILE="$PWD/aur-programs.list"
aurprogs="$(cat "$AUR_PROGS_FILE")"
2022-10-01 22:59:41 +00:00
sudo pacman -S base-devel fakeroot
2022-10-01 22:59:41 +00:00
mkdir -p "$YAY_INSTALL_DIR"
git clone https://aur.archlinux.org/yay.git "$YAY_INSTALL_DIR"
cd "$YAY_INSTALL_DIR"
makepkg -si
for pkg in $aurprogs
do
yay -S "$pkg"
done