summaryrefslogtreecommitdiffstats
path: root/acompiler/virtualbox-module/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'acompiler/virtualbox-module/Pkgfile')
-rwxr-xr-xacompiler/virtualbox-module/Pkgfile16
1 files changed, 10 insertions, 6 deletions
diff --git a/acompiler/virtualbox-module/Pkgfile b/acompiler/virtualbox-module/Pkgfile
index fad56be03..26318e92e 100755
--- a/acompiler/virtualbox-module/Pkgfile
+++ b/acompiler/virtualbox-module/Pkgfile
@@ -4,17 +4,21 @@
# Packager: thierryn1 at hispeed dot ch
name=virtualbox-module
-version=3.2.10
-release=2
+version=4.0.0
+release=1
_name=VirtualBox
-_kernel=2.6.36-NuTyX
-_build=66896
-source=(http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-${_build}-Linux_x86.run)
+_kernel=`uname -r`
+_build=69151
+
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=amd64
+
+source=(http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-${_build}-Linux_${_ARCH}.run)
build() {
- sh "VirtualBox-${version}-${_build}-Linux_x86.run" --target "$SRC" --keep --noexec
+ sh "VirtualBox-${version}-${_build}-Linux_${_ARCH}.run" --target "$SRC" --keep --noexec
tar xfj VirtualBox.tar.bz2
mkdir -p $PKG/lib/modules/${_kernel}/kernel/drivers/misc/