summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/virtualbox-libre-modules-lts/PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/libre/virtualbox-libre-modules-lts/PKGBUILD b/libre/virtualbox-libre-modules-lts/PKGBUILD
index b571d605b..3de090703 100644
--- a/libre/virtualbox-libre-modules-lts/PKGBUILD
+++ b/libre/virtualbox-libre-modules-lts/PKGBUILD
@@ -7,7 +7,7 @@
pkgbase=virtualbox-libre-modules-lts
pkgname=('virtualbox-libre-modules-lts' 'virtualbox-libre-parabola-modules-lts')
pkgver=4.1.18
-pkgrel=3.1
+pkgrel=4
arch=('i686' 'x86_64')
url='http://virtualbox.org'
license=('GPL')
@@ -48,12 +48,12 @@ md5sums=('38db0a87cba659b484af868b0c2bd3ac'
'f7d275fc52e5f3cfafd85646c2914063')
_extramodules=extramodules-3.0-LIBRE-LTS
-_kernver=3.0.38-1-LIBRE-LTS
-
-export KERN_DIR=/usr/lib/modules/${_kernver}/build/
-export KERN_INCL=/usr/src/linux-${_kernver}/include/
build() {
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ export KERN_DIR=/usr/lib/modules/${_kernver}/build/
+ export KERN_INCL=/usr/src/linux-${_kernver}/include/
+
cd "$srcdir/VirtualBox-${pkgver}"
patch -Np1 -i "$srcdir/libre.patch"