Adding yay

This commit is contained in:
Tibo De Peuter 2022-10-27 10:09:21 +02:00
parent ff641e3553
commit d8b513e06a
25 changed files with 30 additions and 90 deletions

View file

@ -7,7 +7,7 @@ post_install() {
}
post_upgrade() {
install_software
install_apps
install_fonts
do_stow
}
@ -16,33 +16,9 @@ pre_remove() {
rm -rf /usr/share/tdpeuter/arch-pkgs
}
install_one() {
cd "${1}"
>&2 echo "Installing ${2}"
git clone --depth 1 --progress "https://aur.archlinux.org/${2}.git"
cd "${2}"
git pull
makepkg -isc --asdeps "tdpeuter-desktop" --noconfirm
}
install_software() {
user=$(who | cut -f1 -d' ' | head -n 1)
dir="/home/${user}/.cache/tdpeuter"
mkdir -p "${dir}"
chown -R "${user}" "${dir}"
su -c "install_one \"${dir}\" \"betterbird-bin\"" "${user}"
su -c "install_one \"${dir}\" \"gooogle-chrome\"" "${user}"
su -c "install_one \"${dir}\" \"hamsket-bin\"" "${user}"
su -c "install_one \"${dir}\" \"jetbrains-toolbox\"" "${user}"
su -c "install_one \"${dir}\" \"rstudio-dekstop-bin\"" "${user}"
su -c "install_one \"${dir}\" \"sway-git\"" "${user}"
install_apps() {
yay -S betterbird-bin google-chrome hamsket-bin jetbrains-toolbox
yay -S rstudio-desktop-bin sway-git
}
install_fonts() {
@ -71,5 +47,3 @@ do_stow() {
stow -d ./stow -t "/home/${user}" ${packages}
}
install_software