diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-19 10:32:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-19 10:32:51 +0100 |
commit | 6c4ad74c86ef31f69f563feb25af3355db4d3d53 (patch) | |
tree | 8774cd5b2e614ba1ca497726db15cbefd43844f8 /sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild | |
parent | 4f739a42af3f061e1c79c62d0493efa79143a6e5 (diff) |
sys-kernel/tp_smapi-dkms : EAPI bump
Diffstat (limited to 'sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild')
-rw-r--r-- | sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild new file mode 100644 index 00000000..e50f0538 --- /dev/null +++ b/sys-kernel/tp_smapi-dkms/tp_smapi-dkms-0.44-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=tp_smapi +MY_P=${MY_PN}-${PV} +DESCRIPTION="IBM ThinkPad SMAPI BIOS driver sources" +HOMEPAGE="https://github.com/linux-thinkpad/tp_smapi" +SRC_URI="https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi/${PV}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="hdaps" + +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use hdaps; then + local CONFIG_CHECK="~INPUT_UINPUT" + local WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better" + local CONFIG_CHECK="~!SENSORS_HDAPS" + local ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)" + fi +} + +src_compile() { + : +} + +src_install() { + if use hdaps; then + cp "${FILESDIR}"/dkms-hdaps.conf "${S}"/dkms.conf || die + else + cp "${FILESDIR}"/dkms.conf "${S}" || die + fi + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r "${S}"/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} |