[arch-commits] Commit in ndiswrapper-arch/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:45 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:45
Author: heftig
Revision: 515105
1.61-70: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
ndiswrapper-arch/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:19:39 UTC (rev 515104)
+++ PKGBUILD 2019-10-11 19:19:45 UTC (rev 515105)
@@ -3,8 +3,7 @@
pkgname=ndiswrapper-arch
pkgver=1.61
-_extramodules=extramodules-ARCH
-pkgrel=69
+pkgrel=70
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors, kernel module for Arch kernel"
arch=('x86_64')
url="https://sourceforge.net/projects/ndiswrapper/"
@@ -32,7 +31,7 @@
}
build() {
- _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+ _kernver="$(</usr/src/linux/version)"
cd ndiswrapper-$pkgver/ndiswrapper
make -C driver KVERS_UNAME="$_kernver"
@@ -39,7 +38,8 @@
}
package() {
+ _extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
cd ndiswrapper-$pkgver/ndiswrapper
- install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 driver/*.ko
+ install -Dt "$pkgdir$_extradir" -m644 driver/*.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
}
More information about the arch-commits
mailing list