summaryrefslogblamecommitdiff
path: root/sys-firmware/intel-nuc-bios/intel-nuc-bios-20231229.ebuild
blob: 8e3c7340b02a2ced3cc5c5edc810daae30f68306 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                                  

            


                                                                            

                                                                                 























                                                                   
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PV_AN="0029"
PV_PA="0052"

DESCRIPTION="BIOS core for Intel NUC Kits"
HOMEPAGE="https://www.intel.com/content/www/us/en/download-center/home.html"
SRC_URI="https://downloadmirror.intel.com/812421/AN${PV_AN}.CAP -> AN${PV_AN}.cap
	https://downloadmirror.intel.com/791327/PA${PV_PA}.CAP -> PA${PV_PA}.cap"

LICENSE="iASL"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="sys-firmware/iFlash"

src_unpack () {
	mkdir "${S}"
	cp "${DISTDIR}/AN${PV_AN}.cap" "${S}/AN${PV_AN}.cap" || die
	cp "${DISTDIR}/PA${PV_PA}.cap" "${S}/PA${PV_PA}.cap" || die
}

src_install () {
	insinto /lib/firmware/intel/nuc
	doins "AN${PV_AN}.cap"
	doins "PA${PV_PA}.cap"
}

pkg_postinst () {
	einfo "Run the following to install the BIOS"
	einfo "iFlash /lib/firmware/intel/nuc/AN${PV_AN}.cap"
	einfo "iFlash /lib/firmware/intel/nuc/PA${PV_PA}.cap"
}