blob: cfd84283ad7af6cdd4b6d694186d00b12cf4adca (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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/archive/stable-v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
S=${WORKDIR}/sof-bin-stable-v${PV}
src_compile() {
sed -i -e '1i #!/bin/bash\nset -e' \
-e '/^ROOT=/d' \
-e "s/^VERSION=.*/VERSION=v${PV}/" go.sh || die
}
src_install() {
mkdir -p ${D}/lib/firmware || die
ROOT=${D} ${S}/go.sh || die
}
|