2022-10-26 12:49:01 +02:00
|
|
|
post_install() {
|
2022-10-26 13:48:16 +02:00
|
|
|
# Initiate the stow repo
|
2022-10-26 20:59:47 +02:00
|
|
|
>&2 echo "Cloning stow git repository"
|
2022-10-26 14:54:09 +02:00
|
|
|
git clone --depth 1 --progress https://git.depeuter.tk/tdpeuter/arch-pkgs /usr/share/tdpeuter/arch-pkgs
|
2022-10-27 12:35:52 +02:00
|
|
|
|
|
|
|
# Installing yay
|
|
|
|
>&2 echo "Installing yay"
|
|
|
|
pacman -S --needed git base-devel
|
|
|
|
git clone https://aur.archlinux.org/yay.git
|
|
|
|
cd yay
|
|
|
|
su -c "makepkg -si" - tdpeuter
|
2022-10-26 15:23:51 +02:00
|
|
|
|
2022-10-26 12:49:01 +02:00
|
|
|
post_upgrade
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2022-10-27 10:09:21 +02:00
|
|
|
install_apps
|
2022-10-26 21:42:32 +02:00
|
|
|
install_fonts
|
2022-10-26 22:04:41 +02:00
|
|
|
do_stow
|
2022-10-26 12:49:01 +02:00
|
|
|
}
|
2022-10-26 13:48:16 +02:00
|
|
|
|
2022-10-26 15:26:44 +02:00
|
|
|
pre_remove() {
|
|
|
|
rm -rf /usr/share/tdpeuter/arch-pkgs
|
|
|
|
}
|
|
|
|
|
2022-10-27 10:09:21 +02:00
|
|
|
install_apps() {
|
2022-10-27 12:35:52 +02:00
|
|
|
rm /var/lib/pacman/db.lck
|
|
|
|
|
|
|
|
pkgs="betterbird-bin google-chrome hamsket-bin zenith"
|
|
|
|
pkgs+=" rstudio-desktop-bin sway-git swaylock-effects-git spotify"
|
|
|
|
|
|
|
|
# Jetbrains
|
|
|
|
pkgs+=" intellij-idea-ultimate-edition pycharm-professional jetbrains-fleet"
|
|
|
|
|
2022-10-27 21:14:08 +02:00
|
|
|
su -c "yay --sudo \"SUDO_ASKPASS=/usr/lib/ssh/x11-ssh-askpass sudo\" --sudoflags \"-A\" --answerclean None --answerdiff None -S ${pkgs}" - tdpeuter
|
2022-10-26 21:42:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
install_fonts() {
|
2022-10-26 22:01:49 +02:00
|
|
|
mkdir -p /usr/local/share/fonts/letter
|
2022-10-26 21:42:32 +02:00
|
|
|
|
|
|
|
>&2 echo "Installing letter (font)"
|
2022-10-26 22:01:49 +02:00
|
|
|
git clone --depth 1 --progress https://github.com/tdpeuter/letter.git
|
2022-10-26 21:42:32 +02:00
|
|
|
cd letter
|
2022-10-26 22:01:49 +02:00
|
|
|
cp ttf/* /usr/local/share/fonts/letter/
|
|
|
|
cp ttf-unhinted/* /usr/local/share/fonts/letter/
|
|
|
|
cp woff2/* /usr/local/share/fonts/letter/
|
2022-10-26 21:42:32 +02:00
|
|
|
cd
|
2022-10-26 19:53:11 +02:00
|
|
|
}
|
2022-10-26 22:01:49 +02:00
|
|
|
|
2022-10-26 22:04:41 +02:00
|
|
|
do_stow() {
|
2022-10-26 22:01:49 +02:00
|
|
|
>&2 echo "Moving to dotfile directory"
|
|
|
|
cd /usr/share/tdpeuter/arch-pkgs/
|
|
|
|
|
|
|
|
>&2 echo "Pulling stow git repository"
|
|
|
|
git pull
|
|
|
|
|
|
|
|
user=$(who | cut -f1 -d' ')
|
|
|
|
packages=$(ls ./stow)
|
|
|
|
|
|
|
|
>&2 echo "Stowing all packages"
|
|
|
|
stow -d ./stow -t "/home/${user}" ${packages}
|
|
|
|
}
|
2022-10-27 00:39:24 +02:00
|
|
|
|