summaryrefslogtreecommitdiff
path: root/sys-firmware/apu2-bios/apu2-bios-4.17.0.3.ebuild
blob: 00c53365660fd6814f1cb9e13adc649f3c15b519 (plain) (blame)
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
28
29
30
# 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"
}