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
|
|
|
|
|
pacman -S --noconfirm --needed \
|
|
|
|
|
base-devel \
|
|
|
|
|
git \
|
|
|
|
|
rsync \
|
|
|
|
|
curl \
|
|
|
|
|
ca-certificates \
|
2025-12-12 16:58:12 +01:00
|
|
|
python \
|
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."
|