summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/nvidia/PKGBUILD10
-rw-r--r--abs/core/nvidia/nvidia.install12
2 files changed, 11 insertions, 11 deletions
diff --git a/abs/core/nvidia/PKGBUILD b/abs/core/nvidia/PKGBUILD
index 8e9cfbc..4572095 100644
--- a/abs/core/nvidia/PKGBUILD
+++ b/abs/core/nvidia/PKGBUILD
@@ -3,9 +3,9 @@
pkgname=nvidia
pkgver=290.10
-_extramodules=extramodules-2.6.26-LinHES
+#_extramodules=extramodules-2.6.39-LinHES
_kernver='2.6.39-LinHES'
-pkgrel=1
+pkgrel=2
pkgdesc="NVIDIA drivers for linux."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
@@ -37,11 +37,11 @@ build() {
package() {
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
- "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
+ "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
- sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
- gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
+ sed -i -e "s/EXTRAMODULES='.*'/KERNEL_VERSION='${_kernver}'/" "${startdir}/nvidia.install"
+ gzip "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"
}
md5sums=('50319a4b3818c12c9c7243525e0e6316')
diff --git a/abs/core/nvidia/nvidia.install b/abs/core/nvidia/nvidia.install
index ef7e7de..8e01d0a 100644
--- a/abs/core/nvidia/nvidia.install
+++ b/abs/core/nvidia/nvidia.install
@@ -1,15 +1,15 @@
post_install() {
- EXTRAMODULES='extramodules-2.6.26-LinHES'
- depmod $(cat /lib/modules/$EXTRAMODULES/version)
+ KERNEL_VERSION='2.6.39-LinHES'
+ depmod $KERNEL_VERSION
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
- EXTRAMODULES='extramodules-2.6.26-LinHES'
- depmod $(cat /lib/modules/$EXTRAMODULES/version)
+ KERNEL_VERSION='2.6.39-LinHES'
+ depmod $KERNEL_VERSION
}
post_remove() {
- EXTRAMODULES='extramodules-2.6.26-LinHES'
- depmod $(cat /lib/modules/$EXTRAMODULES/version)
+ KERNEL_VERSION='2.6.39-LinHES'
+ depmod $KERNEL_VERSION
}