From a068ff0c40ed3b1b3defd813484a029bb216c7ce Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Mon, 2 Aug 2021 09:35:04 -0700 Subject: [PATCH] Trying to rename kernel source dir. --- .../gentoo-surface-sources-5.10.52.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys-kernel/gentoo-surface-sources/gentoo-surface-sources-5.10.52.ebuild b/sys-kernel/gentoo-surface-sources/gentoo-surface-sources-5.10.52.ebuild index 552c9a7..4027d2a 100644 --- a/sys-kernel/gentoo-surface-sources/gentoo-surface-sources-5.10.52.ebuild +++ b/sys-kernel/gentoo-surface-sources/gentoo-surface-sources-5.10.52.ebuild @@ -48,6 +48,10 @@ PATCHES=( "${DISTDIR}/0012-ath10k-firmware-override.patch" ) + pkg_preinst () { + mv "${WORKDIR}/linux-${KV_FULL}" "${WORKDIR}/linux-${KV_FULL}-surface" + } + pkg_setup() { ewarn "" ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." @@ -58,7 +62,6 @@ pkg_setup() { } pkg_postinst() { - mv "${WORKDIR}/linux-${KV_FULL}" "${WORKDIR}/linux-${KV_FULL}-surface" kernel-2_pkg_postinst einfo "For more info on this patchset, and how to report problems, see:" einfo "${HOMEPAGE}"