void-packages/srcpkgs/sof-firmware/template

23 lines
776 B
Bash

# Template file for 'sof-firmware'
pkgname=sof-firmware
version=2.2.1
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/archive/refs/tags/v${version}.tar.gz"
checksum=519d4d0e17016897317cd1dc4516fe6cbf0420560826f341e029dfe78fb62a2e
do_install() {
vmkdir usr/lib/firmware/intel/sof
vmkdir usr/lib/firmware/intel/sof-tplg
rsync -a "v${version%.*}.x/sof/" "${DESTDIR}/usr/lib/firmware/intel/sof"
rsync -a "v${version%.*}.x/sof-tplg/" "${DESTDIR}/usr/lib/firmware/intel/sof-tplg"
vlicense LICENCE.NXP
}