Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-firmware/sof-firmware/
Date: Fri, 04 Nov 2022 03:12:01
Message-Id: 1667531491.90342f0c62ef958af76504e5e8945ca9e267f29a.mattst88@gentoo
1 commit: 90342f0c62ef958af76504e5e8945ca9e267f29a
2 Author: Douglas Agbeve <douglas <AT> agbeve <DOT> com>
3 AuthorDate: Thu Oct 27 10:40:41 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 03:11:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90342f0c
7
8 sys-firmware/sof-firmware: bump to v2.2.2
9
10 Signed-off-by: Douglas Agbeve <douglas <AT> agbeve.com>
11 Closes: https://github.com/gentoo/gentoo/pull/27975
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 sys-firmware/sof-firmware/Manifest | 1 +
15 .../sof-firmware/sof-firmware-2.2.2.ebuild | 33 ++++++++++++++++++++++
16 2 files changed, 34 insertions(+)
17
18 diff --git a/sys-firmware/sof-firmware/Manifest b/sys-firmware/sof-firmware/Manifest
19 index d9475a9d5110..4c9734fc2883 100644
20 --- a/sys-firmware/sof-firmware/Manifest
21 +++ b/sys-firmware/sof-firmware/Manifest
22 @@ -1,2 +1,3 @@
23 DIST sof-firmware-2.1.1.tar.gz 4056718 BLAKE2B 0246f6240504d3e8b609b402c41ffe6ed9b8350b6a31c6567851069354e5de5b4ca6d803e78fdde77cdaba7be87c8a8923b2d0fdd0544fd3b28d1e332cd59b63 SHA512 77e9562f67014d78b213fe428edef6a08dcc058a9a762da09a486c002c3aa0b907ea7c8ba6d4f88f5ddab5e564de06df9f2ed77206341a0fe2e1aaab1d9740ce
24 +DIST sof-firmware-2.2.2.tar.gz 4116116 BLAKE2B e5722242e4b0130086ddb1b12d2adf29254bcae294f3ff49ac07dab3eab75e352a30346dd07c73ac51112b4c5234dc116de81251e01b146328cab673711f1f4c SHA512 6a3be7088f8a93a052563e040a588c600512d08d4b75ae5567db255e334997a6401d41863dcb416562eee07fef0bd2abe1d9d0403cd236ab007474f66271db50
25 DIST sof-firmware-2.2.tar.gz 4211499 BLAKE2B c0ab39cba3ef3dd19b67d714b5a4e5a6a6cb3e8fb2d290c3fceadeb3f7dd96db986411184e16bca56bdd1905a697f8d416cd4aa5bdff90fe32e96713ff87bb71 SHA512 3cd06f6b8f8d6c3379b987cffa019a0d84263b8e00de40c18516c3e90745d5e150bdf71a8005b1ba704e44bf84d7030195e9c0ebfcd6e35228f4c14e9290cd95
26
27 diff --git a/sys-firmware/sof-firmware/sof-firmware-2.2.2.ebuild b/sys-firmware/sof-firmware/sof-firmware-2.2.2.ebuild
28 new file mode 100644
29 index 000000000000..b51c9026bd32
30 --- /dev/null
31 +++ b/sys-firmware/sof-firmware/sof-firmware-2.2.2.ebuild
32 @@ -0,0 +1,33 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DESCRIPTION="Sound Open Firmware (SOF) binary files"
39 +HOMEPAGE="https://www.sofproject.org https://github.com/thesofproject/sof https://github.com/thesofproject/sof-bin"
40 +SRC_URI="https://github.com/thesofproject/sof-bin/releases/download/v${PV}/sof-bin-v${PV}.tar.gz -> ${P}.tar.gz"
41 +S="${WORKDIR}"/sof-bin-v${PV}
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +
47 +# Needed for sof-ctl
48 +RDEPEND="media-libs/alsa-lib"
49 +
50 +QA_PREBUILT="usr/bin/sof-ctl
51 + usr/bin/sof-logger
52 + usr/bin/sof-probes"
53 +
54 +src_install() {
55 + dodir /lib/firmware/intel
56 + dodir /usr/bin
57 + FW_DEST="${D}/lib/firmware/intel" TOOLS_DEST="${D}/usr/bin" "${S}/install.sh" v${PV} || die
58 +}
59 +
60 +pkg_preinst() {
61 + local sofpath="${EROOT}/lib/firmware/intel/sof"
62 + if [[ ! -L "${sofpath}" && -d "${sofpath}" ]] ; then
63 + rm -r "${sofpath}" || die
64 + fi
65 +}