2025-12-09 05:31:55 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
|
|
|
|
|
|
echo "[arch/dependencies] Installing Arch build dependencies..."
|
|
|
|
|
|
|
|
|
|
pacman -Syu --noconfirm
|
2025-12-15 11:07:31 +01:00
|
|
|
|
|
|
|
|
if ! pacman-key --list-sigs &>/dev/null; then
|
|
|
|
|
echo "[arch/dependencies] Initializing pacman keyring..."
|
|
|
|
|
pacman-key --init
|
|
|
|
|
pacman-key --populate archlinux
|
|
|
|
|
fi
|
|
|
|
|
|
2025-12-09 05:31:55 +01:00
|
|
|
pacman -S --noconfirm --needed \
|
|
|
|
|
base-devel \
|
|
|
|
|
git \
|
|
|
|
|
rsync \
|
|
|
|
|
curl \
|
|
|
|
|
ca-certificates \
|
2025-12-12 16:58:12 +01:00
|
|
|
python \
|
2025-12-15 12:14:48 +01:00
|
|
|
python-pip \
|
2025-12-09 05:31:55 +01:00
|
|
|
xz
|
|
|
|
|
|
|
|
|
|
pacman -Scc --noconfirm
|
|
|
|
|
|
|
|
|
|
# Always run AUR builder setup for Arch
|
|
|
|
|
AUR_SETUP="${SCRIPT_DIR}/aur-builder-setup.sh"
|
|
|
|
|
|
|
|
|
|
if [[ ! -x "${AUR_SETUP}" ]]; then
|
|
|
|
|
echo "[arch/dependencies] ERROR: AUR builder setup script not found or not executable: ${AUR_SETUP}"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "[arch/dependencies] Running AUR builder setup..."
|
|
|
|
|
bash "${AUR_SETUP}"
|
|
|
|
|
|
|
|
|
|
echo "[arch/dependencies] Done."
|