diff options
| author | toufic ar <contact@toufy.me> | 2026-10-18 16:35:18 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-10-18 16:35:18 +0300 |
| commit | eba208519ba421cb7fa34f4f17ca43036ec4af79 (patch) | |
| tree | b92d32d5944dfe86a169f66ce9b47517c5d3cabc /root.sh | |
| parent | 13c58543735c6dd95b5c407e800c819b2a641605 (diff) | |
| download | taur-eba208519ba421cb7fa34f4f17ca43036ec4af79.tar.gz taur-eba208519ba421cb7fa34f4f17ca43036ec4af79.zip | |
make .nick optional, allow empty .deps, add env files
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" |
