summaryrefslogblamecommitdiff
path: root/sys-firmware/apu2-bios/apu2-bios-4.17.0.3.ebuild
blob: 00c53365660fd6814f1cb9e13adc649f3c15b519 (plain) (tree)





























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

EAPI=8

DESCRIPTION="PC Engines APU2 BIOS"
HOMEPAGE="https://pcengines.github.io"
SRC_URI="https://3mdeb.com/open-source-firmware/pcengines/apu2/apu2_v${PV}.rom"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="sys-apps/flashrom"

src_unpack () {
	mkdir "${S}"
	cp "${DISTDIR}/apu2_v${PV}.rom" "${S}/apu2_v${PV}.rom" || die
}

src_install () {
	insinto /lib/firmware/pc-engines
	doins "apu2_v${PV}.rom"
}

pkg_postinst() {
	einfo "Run the following to install the BIOS"
	einfo "flashrom -w /lib/firmware/pc-engines/apu2_v${PV}.rom -p internal"
}