summaryrefslogtreecommitdiff
path: root/root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root.sh')
-rwxr-xr-xroot.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/root.sh b/root.sh
index fcf008b..04499c7 100755
--- a/root.sh
+++ b/root.sh
@@ -8,6 +8,14 @@ pacman-key --init
pacman -Syu --noconfirm --needed \
base-devel git jq openssh rsync
+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 |