summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b747f857927..d5475deb190 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,6 @@ depends=('linux>4' 'nasm>=2.11')
makedepends=(linux-headers)
provides=(haxm haxm-git)
conflicts=(haxm haxm-git)
-_extramodules=extramodules-ARCH
source=("$pkgname::git+https://github.com/AlexAltea/haxm.git")
md5sums=('SKIP')
install='haxm-git.install'
@@ -22,8 +21,8 @@ pkgver() {
build() {
cd "$srcdir/$pkgname/platforms/linux"
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- _kdir="/lib/modules/${_kernver}/build"
+ _kernver="$(</usr/src/linux/version)"
+ _kdir="/usr/lib/modules/${_kernver}/build"
make KVER="${_kernver}" KDIR="${_kdir}" modules
}