diff options
Diffstat (limited to '.config/yadm/scripts/bootstrap/aurutils')
-rwxr-xr-x | .config/yadm/scripts/bootstrap/aurutils/bootstrap | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/yadm/scripts/bootstrap/aurutils/bootstrap b/.config/yadm/scripts/bootstrap/aurutils/bootstrap new file mode 100755 index 0000000..749d3d7 --- /dev/null +++ b/.config/yadm/scripts/bootstrap/aurutils/bootstrap @@ -0,0 +1,28 @@ +#!/bin/zsh + + +REPO="[options] +CacheDir = /var/cache/pacman/pkg +CacheDir = /var/cache/pacman/aurutils +CleanMethod = KeepCurrent + +[aurutils] +SigLevel = Optional TrustAll +Server = file:///var/cache/pacman/aurutils" + +echo $REPO | sudo tee /etc/pacman.d/aurutils + +if ! $(grep -Fq "aurutils" /etc/pacman.conf); then + echo "Include = /etc/pacman.d/aurutils" | sudo tee -a /etc/pacman.conf +fi + +sudo install -d /var/cache/pacman/aurutils -o $USER +repo-add /var/cache/pacman/aurutils/aurutils.db.tar +sudo pacman -Syu + +git clone https://aur.archlinux.org/aurutils.git "$HOME/.local/cache/aurutils/git" +cd "$HOME/.local/cache/aurutils/git" +makepkg -irs + +export AUR_PAGER=nvim +aur sync -nr aurutils |