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>
34 lines
1.5 KiB
Bash
34 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
# Created by John A. Hoeven with the ethical assistance of Claude AI
|
|
# ---------------------------------------------------------------------------
|
|
# 04_media.sh
|
|
# ~/projects/ceos/alpine-installer/lib/basic/04_media.sh
|
|
# Version: v0.0.1 | Status: DEVELOPMENT
|
|
# Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480)
|
|
# ---------------------------------------------------------------------------
|
|
# Basic Tier subscript: media — cmus, mpv, ffmpeg, imagemagick, fbida-fbi.
|
|
# Note: package is 'fbida-fbi' (not 'fbida').
|
|
# Defines install_basic_media().
|
|
# ---------------------------------------------------------------------------
|
|
|
|
install_basic_media() {
|
|
log_info "--- basic/04_media: media tools ---"
|
|
local -a PKGS=(cmus mpv ffmpeg imagemagick fbida-fbi)
|
|
for pkg in "${PKGS[@]}"; do
|
|
install_pkg "${pkg}"
|
|
done
|
|
run_test "cmus present" 'command -v cmus >/dev/null 2>&1' warn
|
|
run_test "mpv present" 'command -v mpv >/dev/null 2>&1' warn
|
|
run_test "ffmpeg present" 'command -v ffmpeg >/dev/null 2>&1' warn
|
|
run_test "convert present" 'command -v convert >/dev/null 2>&1' warn
|
|
run_test "fbi present" 'command -v fbi >/dev/null 2>&1' warn
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
SCRIPT_NAME="basic_04_media"
|
|
source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; }
|
|
check_not_root
|
|
install_basic_media
|
|
print_summary
|
|
fi
|