diff options
| author | toufic ar <contact@toufy.me> | 2026-04-16 10:15:03 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-04-16 10:15:03 +0300 |
| commit | d9478c8f0c16d7ce4678a4675b721f9ed36a3f5e (patch) | |
| tree | d08577d73fe8679f6db6a03ae9c35aadfc42098a /root.sh | |
| parent | b886a6d94d45a1f6a19d8c110855cd5e393a2454 (diff) | |
| download | taur-d9478c8f0c16d7ce4678a4675b721f9ed36a3f5e.tar.gz taur-d9478c8f0c16d7ce4678a4675b721f9ed36a3f5e.zip | |
add jenkins pipeline
Diffstat (limited to 'root.sh')
| -rwxr-xr-x | root.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e +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) +pacman -Sy --needed --noconfirm "${deps[@]}" + +sed -i -E 's/(^OPTIONS=\([^)]*)\b(debug)\b/\1!\2/' /etc/makepkg.conf + +echo "$GPGRIVKEY_TEXT" >"$GPGPRIVKEY" +echo "$GPGPASSWD_TEXT" >"$GPGPASSWD" +echo "$SSHPRIVKEY_TEXT" | tr -d "\r" >"$SSHPRIVKEY" + +useradd -m builder +chown -R builder: . |
