1 # Contributor : Giuseppe Calderaro <giuseppecalderaro@gmail.com>
2 # Contributor : Alessandro Sagratini <ale_sagra@hotmail.com>
3 # Contributor : Xabre <Xabre_666 at operamail dot com>
5 pkgname=nvidia-96xx-ice
9 pkgdesc="NVIDIA legacy drivers for kernel26-ice, 96xx branch"
11 [ "$CARCH" = "i686" ] && ARCH=x86
12 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
13 url="http://www.nvidia.com/"
14 depends=('kernel26-ice>=2.6.32' 'kernel26-ice<2.6.33' 'nvidia-96xx-utils')
15 conflicts=('nvidia-ice' 'nvidia-173xx-ice')
16 install=nvidia-96xx-ice.install
18 source=("http://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run")
19 sha256sums=('7906f34371f06ca8deb977e1e9c321b1687e0db3fecf98e1ba7bc0779b8c236d')
20 [ "$CARCH" = "x86_64" ] && sha256sums=('19fa6878061bf413dac4de4b17a5e32f26cf699f7b958805e4b9f0b03892af54')
26 sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
27 cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
29 # Any extra patches are applied in here...
31 ln -s Makefile.kbuild Makefile
32 make SYSSRC=/lib/modules/$_kernver/build module
34 # install kernel module
35 mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
36 install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
38 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install