blob: ac48a808c83ea775d54568e724c508e79909fee8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2024 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-${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/sof-bin-${PV}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
media-libs/alsa-lib
sys-libs/glibc
"
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" || die
}
pkg_preinst() {
# Fix sof-ace-tplg directory symlink collisions
local sofpath="${EROOT}/lib/firmware/intel/sof-ace-tplg"
if [[ ! -L "${sofpath}" && -d "${sofpath}" ]] ; then
rm -r "${sofpath}" || die
fi
}
|