modifications to aur-install.sh, move aur-programs.list to files
parent
a09005fd58
commit
65ab202b15
|
@ -19,3 +19,4 @@ wob
|
||||||
tofi
|
tofi
|
||||||
sway-audio-idle-inhibit-git
|
sway-audio-idle-inhibit-git
|
||||||
shellcheck-bin
|
shellcheck-bin
|
||||||
|
librewolf-bin
|
|
@ -139,7 +139,8 @@ read input
|
||||||
[ "$input" = "y" ] && wireless
|
[ "$input" = "y" ] && wireless
|
||||||
|
|
||||||
echo "installing AUR packages..."
|
echo "installing AUR packages..."
|
||||||
sh ./scripts/aur-install.sh
|
sh ./scripts/aur-install.sh ./files/aur-programs.list
|
||||||
|
|
||||||
echo "Done installing AUR packages."
|
echo "Done installing AUR packages."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,32 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
AUR_PROGS_FILE="$1"
|
||||||
YAY_INSTALL_DIR="$HOME/.local/src/yay"
|
YAY_INSTALL_DIR="$HOME/.local/src/yay"
|
||||||
|
|
||||||
[ -z "$AUR_PROGS_FILE" ] && AUR_PROGS_FILE="$PWD/aur-programs.list"
|
yay_install() {
|
||||||
|
sudo pacman -S base-devel fakeroot
|
||||||
|
|
||||||
aurprogs="$(cat "$AUR_PROGS_FILE")"
|
mkdir -p "$YAY_INSTALL_DIR"
|
||||||
|
git clone https://aur.archlinux.org/yay.git "$YAY_INSTALL_DIR"
|
||||||
|
cd "$YAY_INSTALL_DIR"
|
||||||
|
makepkg -si
|
||||||
|
}
|
||||||
|
|
||||||
sudo pacman -S base-devel fakeroot
|
pkg_install() {
|
||||||
|
aurprogs="$(cat "$AUR_PROGS_FILE")"
|
||||||
|
for pkg in $aurprogs
|
||||||
|
do
|
||||||
|
yay -S "$pkg"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
mkdir -p "$YAY_INSTALL_DIR"
|
if [ -f "$AUR_PROGS_FILE" ]; then
|
||||||
git clone https://aur.archlinux.org/yay.git "$YAY_INSTALL_DIR"
|
|
||||||
cd "$YAY_INSTALL_DIR"
|
|
||||||
makepkg -si
|
|
||||||
|
|
||||||
for pkg in $aurprogs
|
! [ -f "/usr/bin/yay" ] && yay_install
|
||||||
do
|
|
||||||
yay -S "$pkg"
|
|
||||||
|
|
||||||
done
|
pkg_install
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "enter file containing package names to install separated by newlines as first input argument" && exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue