summaryrefslogtreecommitdiffstats
path: root/extra/nvidia/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nvidia/Pkgfile')
-rwxr-xr-xextra/nvidia/Pkgfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/extra/nvidia/Pkgfile b/extra/nvidia/Pkgfile
index 42d16643a..9cb4cf541 100755
--- a/extra/nvidia/Pkgfile
+++ b/extra/nvidia/Pkgfile
@@ -5,15 +5,17 @@
# Depends on:
name=nvidia
-version=185.18.29
+version=185.18.31
release=1
-_kernel=2.6.30.4
-source=(http://us.download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version-pkg1.run\
+_kernel=2.6.30.5
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(http://us.download.nvidia.com/XFree86/Linux-${_ARCH}/$version/NVIDIA-Linux-${_ARCH}-$version-pkg1.run\
)
build() {
- sh NVIDIA-Linux-x86-$version-pkg1.run --extract-only
- cd NVIDIA-Linux-x86-$version-pkg1/usr/src/nv
+ sh NVIDIA-Linux-${_ARCH}-$version-pkg1.run --extract-only
+ cd NVIDIA-Linux-${_ARCH}-$version-pkg1/usr/src/nv
ln -s Makefile.kbuild Makefile
make SYSSRC=/usr/src/kernel/linux-${_kernel} module