Staged installer set for Alpine Linux x86-64 (tinkerpad/ThinkPad T480). Covers Base (Tier 0), Minimal (Tier 1), and Basic (Tier 2) tiers with full phased structure, per-package error capture, and re-runnable test suites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
56 lines
2.5 KiB
Bash
56 lines
2.5 KiB
Bash
#!/usr/bin/env bash
|
|
# Created by John A. Hoeven with the ethical assistance of Claude AI
|
|
# ---------------------------------------------------------------------------
|
|
# 12_access.sh
|
|
# ~/projects/ceos/alpine-installer/lib/minimal/12_access.sh
|
|
# Version: v0.0.1 | Status: DEVELOPMENT
|
|
# Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480)
|
|
# ---------------------------------------------------------------------------
|
|
# Minimal Tier subscript: accessibility — espeak-ng, espeakup, speech-dispatcher.
|
|
# espeak conflict trap: removes espeak before installing espeak-ng.
|
|
# espeakup: repo-verified before install (package availability varies by release).
|
|
# speech-dispatcher: @edge, warn-on-fail.
|
|
# ly login manager: aarch64 CE repo only — SKIPPED on x86-64 with notice.
|
|
# Defines install_minimal_access().
|
|
# ---------------------------------------------------------------------------
|
|
|
|
install_minimal_access() {
|
|
log_info "--- minimal/12_access: accessibility ---"
|
|
|
|
# espeak conflict trap — must run before espeak-ng install
|
|
if doas apk info -e espeak >> "${LOG_FILE}" 2>&1; then
|
|
log_info "Removing conflicting 'espeak' package before installing espeak-ng..."
|
|
doas apk del espeak >> "${LOG_FILE}" 2>&1 \
|
|
|| log_warn "Could not remove espeak — espeak-ng may conflict"
|
|
fi
|
|
|
|
install_pkg "espeak-ng"
|
|
run_test "espeak-ng present" 'command -v espeak-ng >/dev/null 2>&1' warn
|
|
|
|
# espeakup — verify package exists in current repo before attempting install
|
|
if apk search espeakup 2>/dev/null | grep -q "^espeakup"; then
|
|
install_pkg "espeakup"
|
|
else
|
|
log_warn "espeakup not found in current Alpine repos — skipping"
|
|
MANUAL_PKGS+=("espeakup: not found in Alpine v3.23 — check https://github.com/dermotbradley/alpine-espeakup")
|
|
fi
|
|
|
|
# speech-dispatcher — edge package
|
|
ensure_edge_repo
|
|
install_pkg_edge "speech-dispatcher"
|
|
|
|
# ly login manager — CE repo, aarch64 only — skip on x86-64
|
|
if [[ "${ARCH}" == "x86_64" ]]; then
|
|
log_info "NOTICE: ly login manager — CE repo aarch64 only, not available for x86-64 — skipped"
|
|
MANUAL_PKGS+=("ly: aarch64 CE repo only — not available for x86-64 (${ARCH})")
|
|
fi
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
SCRIPT_NAME="12_access"
|
|
source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; }
|
|
check_not_root
|
|
install_minimal_access
|
|
print_summary
|
|
fi
|