1 # Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
2 # Contributor: Missed <Jerry87905@gmail.com>
3 # Contributor: Acker <acker@indisgrace.de>
4 # Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
10 pkgdesc="NVIDIA legacy drivers for kernel26rt, 96xx branch"
11 arch=('i686' 'x86_64')
12 [ "$CARCH" = "i686" ] && ARCH=x86
13 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
15 url="http://www.nvidia.com/"
16 depends=('kernel26rt>=2.6.24.2_rt2-2' 'nvidia-96xx-utils')
17 conflicts=('nvidia-rt')
19 install=nvidia.install
21 source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
22 md5sums=('575750b17f9fd19490fd999a72c7a661')
23 [ "$CARCH" = "x86_64" ] && md5sums=('da37aa996073c4e813eda1be150a44d8')
29 sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
30 cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
32 # Any extra patches are applied in here...
35 ln -s Makefile.kbuild Makefile
36 make SYSSRC=/lib/modules/${_kernver}/build module
38 # install kernel module
39 mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
40 install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
42 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install