summaryrefslogtreecommitdiff
path: root/libre/tp_smapi-lts
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-01-01 18:03:14 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2020-01-01 18:04:27 -0500
commitbd08483225c324f3a1c289b78156bd03905ab1c4 (patch)
tree540760312bd7abf649626e483c7903f0e76cd7bb /libre/tp_smapi-lts
parent795cd872e25df235d666d1a15e0b29e448ae0006 (diff)
downloadabslibre-bd08483225c324f3a1c289b78156bd03905ab1c4.tar.gz
abslibre-bd08483225c324f3a1c289b78156bd03905ab1c4.tar.bz2
abslibre-bd08483225c324f3a1c289b78156bd03905ab1c4.zip
[tp_smapi-lts]: rebuild for 4.19.91
Diffstat (limited to 'libre/tp_smapi-lts')
-rw-r--r--libre/tp_smapi-lts/PKGBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/libre/tp_smapi-lts/PKGBUILD b/libre/tp_smapi-lts/PKGBUILD
index 418057738..3befa1ba4 100644
--- a/libre/tp_smapi-lts/PKGBUILD
+++ b/libre/tp_smapi-lts/PKGBUILD
@@ -10,16 +10,16 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=4.19.75_gnu-1
+#_basekernel=4.19.91_gnu-1
+_basekernel=4.19.91
pkgname=tp_smapi-lts
_pkgname=tp-smapi
pkgver=0.43
-_extradir=/usr/lib/modules/extramodules-${_basekernel%.*}-lts
-pkgrel=10
+pkgrel=28
pkgrel+=.parabola1.basekernel${_basekernel%_*}
pkgdesc="Modules for ThinkPad's SMAPI functionality"
-pkgdesc+="(built for the linux-libre-lts kernel package)"
+pkgdesc+=" (for linux-libre-lts)"
arch=('x86_64')
arch+=('i686')
url='https://github.com/evgeni/tp_smapi'
@@ -40,18 +40,18 @@ build() {
# 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
-
- make HDAPS=1 KVER="$(<$_extradir/version)" EXTRA_CFLAGS=
+ make HDAPS=1 KVER="$(</usr/src/linux-libre-lts/version)" EXTRA_CFLAGS=
}
package() {
- cd ${pkgname/-lts/}
+ local extradir=/usr/lib/modules/$(</usr/src/linux-libre-lts/version)/extramodules
+ cd tp_smapi
# install kernel modules
- find . -name "*.ko" -exec install -Dt "$pkgdir$_extradir" {} +
+ find . -name "*.ko" -exec install -Dt "$pkgdir$extradir" {} +
# compress kernel modules
- find "$pkgdir" -name "*.ko" -exec gzip -n -9 {} +
+ find "$pkgdir" -name "*.ko" -exec xz {} +
# load module on startup
echo tp_smapi | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"