# Template file for 'sof-firmware'
pkgname=sof-firmware
version=2.2.4
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-v${version}.tar.gz"
checksum=ce8aaeba103aa56a82662552b0f33f33a859aa1008d8bfbc2c22f0ccfc8c6b3a

do_install() {
	vmkdir usr/lib/firmware/intel/sof
	vmkdir usr/lib/firmware/intel/sof-tplg
	rsync -a "sof-v${version}/" "${DESTDIR}/usr/lib/firmware/intel/sof"
	rsync -a "sof-tplg-v${version}/" "${DESTDIR}/usr/lib/firmware/intel/sof-tplg"

	vlicense LICENCE.NXP
}
