1 # Syco <SycoLTH at gmail dot com>
7 pkgdesc="NVIDIA drivers for kernel26-ck."
9 url="http://www.nvidia.com/"
10 depends=('kernel26-ck>=2.6.36' 'kernel26-ck<2.6.37' "nvidia-utils=${pkgver}")
11 makedepends=('kernel26-ck-headers>=2.6.36' 'kernel26-ck-headers<2.6.37')
12 conflicts=('nvidia-96xx-all' 'nvidia-173xx-all' 'nvidia-ck-stable' 'nvidia-beta-ck')
13 provides=("nvidia=${pkgver}")
15 install=nvidia.install
17 if [ "$CARCH" = "i686" ]; then
19 _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
20 source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run" "patch_2.6.36.patch")
21 md5sums=('2ec917f51e752802646920e9bcd747e7' '291a1b8b954d5b2129102dc23d89c139')
22 elif [ "$CARCH" = "x86_64" ]; then
24 _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
25 source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run" "patch_2.6.36.patch")
26 md5sums=('73f08a19e00d05165cbbfc74e2fa4bdd' '291a1b8b954d5b2129102dc23d89c139')
31 sh ${_pkg}.run --extract-only
33 patch -p0 < $srcdir/patch_2.6.36.patch
35 make SYSSRC=/lib/modules/${_kernver}/build module
39 install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
40 $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
41 install -d -m755 $pkgdir/etc/modprobe.d
42 echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
43 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install