void-packages/srcpkgs/sof-firmware/template

36 lines
1.3 KiB
Bash

# 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
}