#!/bin/bash
# ============================================================
# cecilia.sh — Cecilia audio signal-processing environment
# ============================================================
# Installs Cecilia, a Python/GUI front-end for CSound that
# provides a set of built-in audio modules for sound design,
# granular synthesis, spectral processing, and more.  It is
# aimed at composers and audio researchers who want to
# experiment with synthesis and processing without writing
# raw CSound code.
#
# Cecilia is only available through the AUR on Arch Linux.
# This is an optional module because it is a niche tool
# relevant mainly to users involved in electroacoustic music
# or audio research.
# ============================================================

set -euo pipefail
# Load shared logging helpers from the dotfiles lib
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"

# ── Cecilia (AUR) ─────────────────────────────────────────────────────────────
# --answerdiff None : skip the "show diff?" prompt during AUR builds
# --answerclean All : answer "clean" to the "clean build dir?" prompt
# --noconfirm       : suppress all remaining yay/makepkg confirmation prompts
log "Installing Cecilia (AUR)..."
# The AUR package is named cecilia-git (there is no plain "cecilia" in repos/AUR).
yay -S --answerdiff None --answerclean All --noconfirm --needed cecilia-git

log "Cecilia installed."
