New package: sof-firmware-1.5.1

This commit is contained in:
cinerea0 2020-08-10 21:32:25 -04:00 committed by Toyam Cox
parent 4a85d535fb
commit 039b9540a2

View file

@ -0,0 +1,35 @@
# Template file for 'sof-firmware'
pkgname=sof-firmware
version=1.5.1
revision=1
archs="i686* x86_64*"
wrksrc=sof-bin-stable-v${version}
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/stable-v${version}.tar.gz"
checksum=270125fb621b9919de4190f53a86de5dc1163dcf839c349f4b22724a5a9c1fb1
do_install() {
local intel_path="lib/firmware/intel"
for f in ${intel_path}/sof/v${version}/*.{ldc,ri}; do
vinstall ${f} 0644 /usr/${intel_path}/sof
done
for f in ${intel_path}/sof/v${version}/intel-signed/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof/intel-signed
done
for f in ${intel_path}/sof/v${version}/public-signed/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof/public-signed
done
for arc in {bdw,byt,cht,apl,cnl,icl}; do
ln -s sof-${arc}-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-${arc}.ri
done
ln -s sof-apl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-glk.ri
ln -s sof-cnl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-cfl.ri
ln -s sof-cnl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-cml.ri
for f in ${intel_path}/sof-tplg-v${version}/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof-tplg
done
vlicense LICENCE.NXP
}