updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / nvidia-96xx-rt / PKGBUILD
blob2543b4eb987f461bca14307d9fa462b6cef6858a
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>
6 pkgname=nvidia-96xx-rt
7 pkgver=96.43.05
8 _kernver='2.6.24-rt'
9 pkgrel=1
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')
18 license=('custom')
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')
25 build()
27   # Extract
28   cd $startdir/src/
29   sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
30   cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
31   
32   # Any extra patches are applied in here...
34   cd usr/src/nv/
35   ln -s Makefile.kbuild Makefile
36   make SYSSRC=/lib/modules/${_kernver}/build module 
37   
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