summaryrefslogtreecommitdiff
path: root/libre/tp_smapi
diff options
context:
space:
mode:
Diffstat (limited to 'libre/tp_smapi')
-rw-r--r--libre/tp_smapi/PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index ee688fe0b..53b794c5e 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -10,7 +10,7 @@
# Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-_basekernel=5.2.5_gnu-1
+_basekernel=5.3.7_gnu-1
pkgname=tp_smapi
pkgver=0.43
@@ -24,7 +24,6 @@ url='https://github.com/evgeni/tp_smapi'
license=('GPL')
depends=(linux-libre=${_basekernel%-*})
makedepends=(linux-libre-headers=${_basekernel%-*} git libelf)
-_extradir=/usr/lib/modules/extramodules
_commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43
source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit")
sha256sums=('SKIP')
@@ -40,14 +39,15 @@ 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/version)" EXTRA_CFLAGS=
}
package() {
+ local extradir=/usr/lib/modules/$(</usr/src/linux-libre/version)/extramodules
cd $pkgname
# 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 xz {} +