aboutsummaryrefslogtreecommitdiffstats
path: root/app-admin/kern/kern-0.6.0-r2.ebuild
blob: c46c219a8d2ee00674e7a1a4177d49762ed47cc5 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_METHOD="signify"
inherit verify-sig

DESCRIPTION="Configure, build, and install kernels on Gentoo Linux"
HOMEPAGE="https://git.oriole.systems/kern"
SRC_URI="
	https://git.oriole.systems/${PN}/snapshot/${P}.tar.gz
	verify-sig? (
		https://git.oriole.systems/${PN}/snapshot/${P}.tar.gz.asc
			-> ${P}.sha.sig
	)
"

LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 x86"
RESTRICT="mirror"

RDEPEND="${DEPEND}
	app-admin/eclean-kernel"
BDEPEND="verify-sig? ( sec-keys/signify-keys-oriole-systems )"

VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/oriole-systems-20240330.pub"

src_unpack() {
	if use verify-sig; then
		cp "${DISTDIR}"/${P}.{sha.sig,tar.gz} "${WORKDIR}" || die
		verify-sig_verify_signed_checksums \
			${P}.sha.sig sha256 ${P}.tar.gz
	fi
	default
}

src_compile() { :; }

src_install() {
	emake PREFIX=/usr DESTDIR="${D}" install

	insinto /usr/share/fish/vendor_completions.d
	doins contrib/completion/kern.fish
}