From d4645d2c48434ba7210921a7a170596fb987db03 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 19 Feb 2024 18:46:58 +0100 Subject: [yadm] bootstrap packages for complete install --- .config/yadm/scripts/bootstrap/aurutils/bootstrap | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 .config/yadm/scripts/bootstrap/aurutils/bootstrap (limited to '.config/yadm/scripts/bootstrap/aurutils') 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 -- cgit v1.2.3