#!/bin/bash
set -euo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"

log "Installing Stunt Rally (AUR)..."
# Stunt Rally 3 is NOT on Flathub (the previously-used
# io.github.stuntrally.StuntRally3 flatpak ID does not exist there — only the
# older org.tuxfamily.StuntRally v2 is published). Install the current release
# from the AUR instead. stuntrally-bin is the pre-built package (no long source
# compile); stuntrally-git builds from source.
yay -S --answerdiff None --answerclean All --noconfirm --needed stuntrally-bin
log "Stunt Rally installed."
