summaryrefslogtreecommitdiff
path: root/.config/yadm/scripts/bootstrap/aurutils
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-02-19 18:46:58 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-02-22 16:40:15 +0100
commitd4645d2c48434ba7210921a7a170596fb987db03 (patch)
tree9116640e2fd6a612fd3c7e5e01d1b3bab5b3d76c /.config/yadm/scripts/bootstrap/aurutils
parent2daa93b9985ecb8aba6531fdd93859a8dd451be3 (diff)
[yadm] bootstrap packages for complete install
Diffstat (limited to '.config/yadm/scripts/bootstrap/aurutils')
-rwxr-xr-x.config/yadm/scripts/bootstrap/aurutils/bootstrap28
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