diff options
-rw-r--r-- | libre/tp_smapi-lts/PKGBUILD | 18 |
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" |