[arch-commits] Commit in tp_smapi/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:31 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:31
Author: heftig
Revision: 515098
0.43-146: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
tp_smapi/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:17:26 UTC (rev 515097)
+++ PKGBUILD 2019-10-11 19:19:31 UTC (rev 515098)
@@ -9,7 +9,7 @@
pkgname=tp_smapi
pkgver=0.43
-pkgrel=145
+pkgrel=146
pkgdesc="Modules for ThinkPad's SMAPI functionality"
arch=('x86_64')
url='https://github.com/evgeni/tp_smapi'
@@ -16,7 +16,6 @@
license=('GPL')
depends=('linux')
makedepends=('linux-headers' 'git')
-_extradir=/usr/lib/modules/extramodules-ARCH
_commit=a63729ab30d85430048f65c37f29188ab484cd52 # tags/tp-smapi/0.43
source=("git+https://github.com/evgeni/tp_smapi#commit=$_commit")
sha256sums=('SKIP')
@@ -32,14 +31,15 @@
# 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/version)" EXTRA_CFLAGS=
}
package() {
+ local extradir=/usr/lib/modules/$(</usr/src/linux/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 {} +
More information about the arch-commits
mailing list