# shellcheck shell=bash # Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. # See LICENSE.md for license information. # SPDX-License-Identifier: MIT # # EmuTOS 1.4 (GPL): a free TOS replacement for the Atari ST emulator, the # 512 KB US-English image. The gates and joey-run boot it instead of # Atari's copyrighted TOS. The German image, from the same download, is the # input gate's national keyboard (its Alt layer types @ [ ] { } \). compDescription="Atari ST firmware: EmuTOS 1.4 (free TOS replacement)" compGroups="emulator:atarist" compRequires="host" compHostDeps="unzip" compUrl="https://sourceforge.net/projects/emutos/files/emutos/1.4/emutos-512k-1.4.zip/download" compSha256="1ef7bd25f61bcfc66d19debc2f0ebb0d5e5ba811ccd7f0fddfcb105bb72d1663" compPin="$compSha256" imgPath="$JOEY_FIRMWARE/atarist/emutos-512k.img" imgPathDe="$JOEY_FIRMWARE/atarist/emutos-512k-de.img" compInstall() { local tmp tmp="$(freshBuildDir "$compId")" unzip -oq "$(fetchFile "$compUrl" "$compSha256" emutos-512k-1.4.zip)" 'emutos-512k-1.4/etos512us.img' 'emutos-512k-1.4/etos512de.img' -d "$tmp" install -D -m 644 "$tmp/emutos-512k-1.4/etos512us.img" "$imgPath" install -D -m 644 "$tmp/emutos-512k-1.4/etos512de.img" "$imgPathDe" dropBuildDir "$compId" } compInstalled() { [ -f "$imgPath" ] && [ -f "$imgPathDe" ] } compVerify() { [ "$(sha1sum "$imgPath" | cut -d' ' -f1)" = "7d28ee58f00854954073198983572e6921b87a21" ] && [ "$(sha1sum "$imgPathDe" | cut -d' ' -f1)" = "0a65f49d98896ad3e769be5f038a8d3086c00316" ] } compEnv() { envVar EMUTOS_IMG "$imgPath" envVar EMUTOS_DE_IMG "$imgPathDe" }