diff options
Diffstat (limited to 'root.sh')
| -rwxr-xr-x | root.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,9 +5,14 @@ source ./env.sh pacman-key --init pacman -Syu --noconfirm --needed base-devel git jq openssh rsync -readarray -t deps < <(jq -r '.[] .pkgs[] .deps[]' pkgbuilds.json | sort -u) +readarray -t deps < <(jq -r '.[] .pkgs[] | select(.deps != null) | .deps[]' pkgbuilds.json | sort -u) pacman -Sy --needed --noconfirm "${deps[@]}" +jq -r \ + '.[] .pkgs[] | select(.env != null) | .env | to_entries[] | "\(.key) \(.value)"' \ + pkgbuilds.json | \ + while read -r target link; do ln -sf "$(pwd)"/env/"$target" "$link"; done + sed -i -E 's/(^OPTIONS=\([^)]*)\b(debug)\b/\1!\2/' /etc/makepkg.conf cp "$GPGRIVKEY_TEXT" "$GPGPRIVKEY" |
