# Template file for 'sof-firmware'
pkgname=sof-firmware
version=1.6.1
revision=2
archs="i686* x86_64*"
wrksrc="sof-bin-${version}"
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/archive/v${version}.tar.gz"
checksum=587b320030bc84de1aacba5d86d89ba1a4f67201baf8b9b61bb885af60643bfb

do_install() {
	vlicense LICENCE.NXP

	export ROOT="${DESTDIR}/usr"
	export SOF_VERSION="v${version}"

	vmkdir usr/lib/firmware/intel
	./go.sh
}
