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

38 lines
924 B
Bash

# Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License.
# See LICENSE.md for license information.
# SPDX-License-Identifier: MIT
#
# PTPlayer 6.4: Frank Wille's ProTracker replayer for the Amiga, used by
# the Amiga audio HAL. Aminet's URL is not versioned, so the pin is the
# archive's checksum.
compDescription="Amiga audio: PTPlayer 6.4 (ProTracker replayer)"
compGroups="toolchain:amiga"
compRequires="host"
compHostDeps="lhasa"
compUrl="http://aminet.net/mus/play/ptplayer.lha"
compSha256="5ba1285e91413f6b6cb72768c0c31cff90029af6920870d9f589689aa2e2161a"
compPin="$compSha256"
compInstall() {
local lha
lha="$(fetchFile "$compUrl" "$compSha256")"
rm -rf "$compDir"
extractArchive "$lha" "$compDir"
}
compInstalled() {
[ -f "$compDir/ptplayer.asm" ]
}
compVerify() {
grep -qi 'ptplayer' "$compDir/ptplayer.asm"
}
compEnv() {
envVar AMIGA_PTPLAYER "$compDir"
}