diff options
author | Cecil <knoppmyth@gmail.com> | 2011-12-22 06:29:02 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-12-22 06:29:02 (GMT) |
commit | 90fe13c310dfbeab98a12a5dacc016f307ec4feb (patch) | |
tree | e39facb04cd18c8f93f9e082c6a4be13217dfad6 /abs | |
parent | d5600ed2385ad873731cd84f32a3552e85c5be00 (diff) | |
download | linhes_pkgbuild-90fe13c310dfbeab98a12a5dacc016f307ec4feb.zip linhes_pkgbuild-90fe13c310dfbeab98a12a5dacc016f307ec4feb.tar.gz linhes_pkgbuild-90fe13c310dfbeab98a12a5dacc016f307ec4feb.tar.bz2 |
nvidia:Fixed typo, other issues.
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/nvidia/PKGBUILD | 10 | ||||
-rw-r--r-- | abs/core/nvidia/nvidia.install | 12 |
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 } |