1 # Contributor: Missed <Jerry87905@gmail.com>
7 pkgdesc="NVIDIA drivers for kernel26tp."
9 [ "$CARCH" = "i686" ] && ARCH=x86
10 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
11 url="http://www.nvidia.com/"
12 depends=('kernel26tp>=2.6.25-1' 'kernel26tp<2.6.26' 'nvidia-utils')
13 conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
15 install=nvidia.install
16 source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
17 md5sums=('20b4952c99e3312984793410cb06a609')
18 [ "$CARCH" = "x86_64" ] && md5sums=('223dedf255d74eaa2e63808586f030f1')
24 sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
25 cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
27 # Any extra patches are applied in here...
30 ln -s Makefile.kbuild Makefile
31 make SYSSRC=/lib/modules/${_kernver}/build module || return 1
33 # install kernel module
34 mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
35 install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
37 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install