joeylib2/installer/components/libxmp.sh

33 lines
839 B
Bash

# libxmp-lite 4.7.0: the MOD decoder the DOS, Atari ST and X68000 audio
# HALs compile in. Each port's makefile builds it from this source tree.
compDescription="audio: libxmp-lite 4.7.0 source (DOS, Atari ST, X68000)"
compGroups="toolchain:dos toolchain:atarist toolchain:x68000"
compRequires="host"
compHostDeps="tar"
compUrl="https://github.com/libxmp/libxmp/releases/download/libxmp-4.7.0/libxmp-lite-4.7.0.tar.gz"
compSha256="69967a7802d2d2f938347f6f9cd95232bf45a4623cbfcc196e37cdaefadc3974"
compPin="$compSha256"
compInstall() {
local archive
archive="$(fetchFile "$compUrl" "$compSha256")"
rm -rf "$compDir"
extractArchive "$archive" "$compDir" 1
}
compInstalled() {
[ -f "$compDir/include/libxmp-lite/xmp.h" ]
}
compVerify() {
[ -d "$compDir/src" ]
}
compEnv() {
envVar LIBXMP_DIR "$compDir"
}