joeylib2/installer/components/amigaLowlevel.sh
2026-10-13 14:01:46 -05:00

39 lines
1.2 KiB
Bash

# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License.
# See LICENSE.md for license information.
# SPDX-License-Identifier: MIT
#
# Amiga lowlevel.library (40.35, from Workbench 3.1's Libs drawer), which
# JoeyLib's Amiga port reads both joystick ports through (ReadJoyPort).
# Kickstart 3.1 has no lowlevel.library in ROM: AmigaOS loads it from LIBS:,
# so without it on the boot drive a program sees no joysticks, and joey-run
# and the Amiga joystick gate put it there. Cloanto still sells Workbench 3.1
# (Amiga Forever), so it is never downloaded from a public source: it comes
# from the private bundle or `install.sh import`, which also finds it inside
# a Workbench .adf disk image.
compDescription="Amiga firmware: lowlevel.library from Workbench 3.1 (private: bundle or import)"
compGroups="emulator:amiga"
compRequires=""
compHostDeps=""
compPrivateFile="toolchains/firmware/amiga/Libs/lowlevel.library"
compPin="$(privateSha1For "$compPrivateFile")"
compInstall() {
privateEnsure "$compPrivateFile"
}
compInstalled() {
privatePresent "$compPrivateFile"
}
compVerify() {
privatePresent "$compPrivateFile"
}
compEnv() {
envVar AMIGA_LOWLEVEL_LIBRARY "$JOEY_REPO/$compPrivateFile"
}