summaryrefslogtreecommitdiff
blob: 8f9227d0be2cd567f8af1c7556f6538fada3b57e (plain)
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Installkernel script for Portage-powered Android systems"
HOMEPAGE="https://github.com/KireinaHoro/installkernel"
SRC_URI="https://github.com/KireinaHoro/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~arm64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
sys-kernel/preinit
app-arch/cpio
dev-util/abootimg
"

src_install() {
	into /
	dobin installkernel
}

pkg_postinst() {
	if [ -L "/root/bin/installkernel" ]; then
		einfo "Installkernel is successfully installed. However, the paths that kernel source's"
		einfo "install.sh tries to call is /root/bin/installkernel and /sbin/installkernel. Please"
		einfo "run the following as root to symlink /bin/installkernel:"
		einfo "    mkdir -p /root/bin && ln -s /bin/installkernel /root/bin/"
	fi
}