# Template file for 'sof-firmware'
pkgname=sof-firmware
version=2025.01
revision=1
archs="i686* x86_64*"
hostmakedepends="rsync"
depends="alsa-ucm-conf"
short_desc="Sound Open Firmware and topology binaries"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="BSD-3-Clause"
homepage="https://thesofproject.github.io/latest/index.html"
distfiles="https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-${version}.tar.gz"
checksum=34d565db757a32450106317cc51f38bf67962e0fc8b7f7c72e6e39fd89e99263

do_install() {
	vmkdir usr/lib/firmware/intel
	for dir in sof sof-ace-tplg sof-ipc4 sof-ipc4-lib sof-ipc4-tplg sof-tplg; do
		rsync -a "${dir}" "${DESTDIR}/usr/lib/firmware/intel/"
	done

	vlicense LICENCE.NXP
}
