1 # Contributor : Alessandro Sagratini <ale_sagra@hotmail.com>
3 pkgname=nvidia-71xx-ice
7 pkgdesc="NVIDIA legacy drivers for kernel26-ice, 71xx branch"
9 [ "$CARCH" = "i686" ] && ARCH=x86
10 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
11 url="http://www.nvidia.com/"
12 depends=('nvidia-71xx-utils' 'kernel26-ice')
13 conflicts=('nvidia-ice' 'nvidia-96xx-ice')
15 source=(http://us.download.nvidia.com/XFree86/Linux-${ARCH}/${pkgver}/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run
16 NVIDIA_kernel-96.43.05-2290218.diff.txt)
17 install="nvidia-71xx-ice.install"
18 md5sums=('56354473bddff67eefed22d79398fb93'
19 'f2d9c8605a0f655b3c5c9b2434b9dccd')
20 [ "$CARCH" = "x86_64" ] && md5sums=('9d102e8a6a1746423f0e0a231df63eeb'
21 'f2d9c8605a0f655b3c5c9b2434b9dccd')
28 sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run --extract-only
29 cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg0
30 # Any extra patches are applied in here...
31 patch -Np0 -i ../NVIDIA_kernel-96.43.05-2290218.diff.txt || return 1
34 ln -s Makefile.kbuild Makefile
35 make SYSSRC=/lib/modules/$_kernver/build module
37 # install kernel module
38 mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
39 install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
41 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install