1
0
Fork 0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
pyrocufflink-overlay/sys-kernel/linux-jaina/linux-jaina-4.12.12.ebuild

30 lines
561 B
Bash

# Copyright 1999-2017 Dustin C. Hatch
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit dchkernel mount-boot
DESCRIPTION="Kernel for ${PN#*-}"
HOMEPAGE=""
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="modules"
DEPEND="app-arch/lz4
sys-kernel/linux-firmware"
pkg_postinst() {
local installpath=/usr/$(get_libdir)/kernels/"${PN}"
if [[ -e /boot/vmlinuz ]]; then
mv /boot/vmlinuz /boot/vmlinuz.old || die
fi
cp "${ROOT%/}${installpath}"/vmlinuz-${KERNELRELEASE} /boot/vmlinuz
mount-boot_pkg_postinst
}