summaryrefslogtreecommitdiff
path: root/libre/tp_smapi-lts
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2024-04-14 21:36:11 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2024-04-16 12:52:15 -0400
commit39faf006490e723bccf29b9469f73263e8556bc4 (patch)
treef8a9ba2eb30dde76cb783e94654687730ca444b3 /libre/tp_smapi-lts
parentb0bf555cd6fb52d072ef6e725ced301ab256f008 (diff)
acpi_call{,-dkms,-lts}:tp_smapi{,-lts}: rebuild against latest kernels
Diffstat (limited to 'libre/tp_smapi-lts')
-rw-r--r--libre/tp_smapi-lts/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/libre/tp_smapi-lts/PKGBUILD b/libre/tp_smapi-lts/PKGBUILD
index c426652eb..4f545af94 100644
--- a/libre/tp_smapi-lts/PKGBUILD
+++ b/libre/tp_smapi-lts/PKGBUILD
@@ -26,16 +26,19 @@
# linux-libre-headers <- acpi_call
# tp_smapi
#
+# NOTE: It is normally not necessary to edit any of these PKGBUILDs.
# These packages may be built as a batch, with the helper script:
# 'scripts/package-all-acpi_call-tp_smapi'
# Simply edit 'KERNEL_VER' and/or 'KERNEL_LTS_VER' in the helper script.
-# It will build only those which the PKGBUILD '_basekernel' differs,
+# It will build any or all of the above packages,
+# but only those for which the PKGBUILD '_basekernel' differs,
# update '_basekernel', and commit the changes to VCS, if successful.
-_basekernel=5.15.88
+_basekernel=6.6.14
-pkgname=tp_smapi
+pkgname=tp_smapi-lts
+_upstream_name=tp_smapi
pkgver=0.44
pkgrel=15
pkgrel+=.parabola1.basekernel${_basekernel}
@@ -46,12 +49,12 @@ arch+=('i686')
url='https://github.com/evgeni/tp_smapi'
license=(GPL)
makedepends=(linux-libre-lts-headers=${_basekernel})
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/linux-thinkpad/${pkgname}/archive/refs/tags/${pkgname/_/-}/${pkgver}.tar.gz)
+source=(${_upstream_name}-${pkgver}.tar.gz::https://github.com/linux-thinkpad/${_upstream_name}/archive/refs/tags/${_upstream_name/_/-}/${pkgver}.tar.gz)
sha256sums=('ccc317157c71df621ef92e0213c3a813de4a792fa1dce16a1784944edfcb9ea4')
build() {
- cd ${pkgname}-${pkgname/_/-}-${pkgver}
+ cd ${_upstream_name}-${_upstream_name/_/-}-${pkgver}
# https://bugs.archlinux.org/task/54975 (kernel has no _GLOBAL_OFFSET_TABLE_):
# Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt breaks the modules
@@ -63,7 +66,7 @@ package() {
depends=(linux-libre-lts=${_basekernel})
local extradir=/usr/lib/modules/$(</usr/src/linux-libre-lts/version)/extramodules
- cd ${pkgname}-${pkgname/_/-}-${pkgver}
+ cd ${_upstream_name}-${_upstream_name/_/-}-${pkgver}
find . -name "*.ko" -exec install -Dt "$pkgdir$extradir" {} +
find "$pkgdir" -name "*.ko" -exec strip --strip-debug {} +