app-laptop/tp_smapi: add 0.45

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky 2025-08-03 11:50:01 -04:00
parent 93a3df6707
commit 536a7bbf35
No known key found for this signature in database
GPG Key ID: 6F48D3DA05C2DADB
2 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST tp_smapi-0.44.tgz 40724 BLAKE2B 03b765bc5736f514cf2a315dcc6d14bbb7869b98da8c5e016be49bd47bc2d1ec4da7c0c5b5468356df6aa4083b2de4048a078b5498dc7aa0083e3fcfbb64aa41 SHA512 c6b6068941d43505d14dc155441287ba5576f0b1b09861e13853e5360f9b4483d709b823761d39c93bc0c860100d43cc485d2454d66a66ceaaf2d43b5b0c9dc9
DIST tp_smapi-0.45.tgz 40001 BLAKE2B 2fb2a2c6590e935bf35b46ec6c7a216e6769cb9a96d292f8696f2e85400d1ca892a831234e3a6f769902b278fcae630c0ed0db18ab538b43e9df826614e2234d SHA512 b66e7652abae184d13d4ad4ccfd7dd6850a14219af094c2972a23bc6d0f968806e43b6e3610bfb80ae0071520c413bb08ff3aefff2f86ed86b6ae8ccce095fca

View File

@ -0,0 +1,46 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-mod-r1
DESCRIPTION="IBM ThinkPad SMAPI BIOS driver"
HOMEPAGE="https://github.com/linux-thinkpad/tp_smapi"
SRC_URI="https://github.com/linux-thinkpad/tp_smapi/releases/download/tp-smapi/${PV}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="hdaps"
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
linux-mod-r1_pkg_setup
}
src_compile() {
local modlist=( thinkpad_ec tp_smapi )
local modargs=( KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR} )
if use hdaps; then
modlist+=( hdaps )
modargs+=( HDAPS=1 )
fi
linux-mod-r1_src_compile
}
src_install() {
linux-mod-r1_src_install
newinitd "${FILESDIR}/${PN}-0.40-initd" smapi
newconfd "${FILESDIR}/${PN}-0.40-confd" smapi
}