adding dependency installer scripts and yay installer script

This commit is contained in:
Solomon Laing 2021-04-10 16:14:59 +09:30
parent a42b2eeec9
commit fc1b6e40f2
4 changed files with 58 additions and 5 deletions

View File

@ -22,6 +22,5 @@
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
"window.zoomLevel": -1
]
}

View File

@ -1,4 +1,6 @@
dunst-gitx
git-flow-completion-git
dunst-git
dmenu-inkletblot
slock
notify-send
@ -10,7 +12,7 @@ xmonad-contrib
firfox
surf
xmobar
picom
picom-jonaburg-git
nitrogen
xclip
numlockx
@ -85,4 +87,3 @@ ansible
android-sdk-platform-tools
lxappearance
qt5ct

19
scripts/install-dependencies Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
default_programs="/default-programs"
dependencies=$(cat $HOME/$default_programs)
for dependency in $dependencies
do
if ! command -v $dependency &> /dev/null; then
yay -Sy --noconfirm $dependency
fi
break
done
# notify about steam issue
# echo "There are a few programs that can't be automatically installed. The main one of these is Steam which requires multilib to be enabled. Instructions for this can be found at: https://wiki.archlinux.org/index.php/Official_repositories#Enabling_multilib Once this is done steam can be installed."

34
scripts/install-yay Executable file
View File

@ -0,0 +1,34 @@
#!/bin/sh
# if command -v yay &> /dev/null; then
# echo "yay is already installed."
# exit 0;
# fi
echo "This script is going to install yay and it's dependencies. As such it will ask for root privilages."
read -r -p "Are You Sure? [y/N] " input
case $input in
[yY][eE][sS] | [yY])
echo "The program will continue..."
;;
[nN][oO] | [nN])
exit 0
;;
*)
echo "Invalid input..."
exit 1
;;
esac
if ! command -v git &> /dev/null; then
sudo pacman -Sy --noconfirm git
fi
if ! command -v fakeroot &> /dev/null; then
sudo pacman -Sy --noconfirm base-devel
fi
cd /opt
sudo git clone https://aur.archlinux.org/yay.git