You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild

49 lines
841 B

# 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"
MY_FILELIST=(
sof-apl-v${PV}.ldc
sof-apl-v${PV}.ri
sof-bdw.ldc
sof-bdw.ri
sof-byt.ldc
sof-byt.ri
sof-cht.ldc
sof-cht.ri
sof-cnl-v${PV}.ldc
sof-cnl-v${PV}.ri
sof-icl-v${PV}.ldc
sof-icl-v${PV}.ri
sof-imx8.ldc
sof-imx8.ri
)
MY_SRC_URI_BASE="https://github.com/thesofproject/sof/releases/download/v${PV}"
for my_file in "${MY_FILELIST[@]}" ; do
SRC_URI+="${MY_SRC_URI_BASE}/${my_file} -> ${P}-${my_file} "
done
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
S=${WORKDIR}
src_unpack() {
:
}
src_install() {
insinto /lib/firmware
for my_name in ${A} ; do
newins "${DISTDIR}/${my_name}" "${my_name#${P}-}"
done
}