From 5950ab0f26bdbfcc40b68a19fd542816fecdd615 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Dec 2022 14:05:07 +0000 Subject: gentoo auto-resync : 25:12:2022 - 14:05:06 --- .../sof-firmware/sof-firmware-2.2.3.ebuild | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sys-firmware/sof-firmware/sof-firmware-2.2.3.ebuild (limited to 'sys-firmware/sof-firmware/sof-firmware-2.2.3.ebuild') diff --git a/sys-firmware/sof-firmware/sof-firmware-2.2.3.ebuild b/sys-firmware/sof-firmware/sof-firmware-2.2.3.ebuild new file mode 100644 index 000000000000..b51c9026bd32 --- /dev/null +++ b/sys-firmware/sof-firmware/sof-firmware-2.2.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Sound Open Firmware (SOF) binary files" +HOMEPAGE="https://www.sofproject.org https://github.com/thesofproject/sof https://github.com/thesofproject/sof-bin" +SRC_URI="https://github.com/thesofproject/sof-bin/releases/download/v${PV}/sof-bin-v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/sof-bin-v${PV} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +# Needed for sof-ctl +RDEPEND="media-libs/alsa-lib" + +QA_PREBUILT="usr/bin/sof-ctl + usr/bin/sof-logger + usr/bin/sof-probes" + +src_install() { + dodir /lib/firmware/intel + dodir /usr/bin + FW_DEST="${D}/lib/firmware/intel" TOOLS_DEST="${D}/usr/bin" "${S}/install.sh" v${PV} || die +} + +pkg_preinst() { + local sofpath="${EROOT}/lib/firmware/intel/sof" + if [[ ! -L "${sofpath}" && -d "${sofpath}" ]] ; then + rm -r "${sofpath}" || die + fi +} -- cgit v1.2.3