1 # Maintainer: Jason Melton <jason.melton@gmail.com>
2 # Contributor: Atilla ÖNTAŞ <tarakbumba@gmail.com>
8 pkgdesc="NVIDIA dynamic kernel module (DKMS) drivers for kernel26."
10 url="http://www.nvidia.com/"
13 optdepends=("nvidia-utils=${pkgver}")
14 provides=("nvidia=${pkgver}")
16 install=${_pkgname}.install
19 if [ "$CARCH" = "i686" ]; then
21 _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
22 source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
23 md5sums=('50319a4b3818c12c9c7243525e0e6316')
24 elif [ "$CARCH" = "x86_64" ]; then
26 _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
27 source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
28 md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
32 md5sums[1]='d263c0a91f7aea7b59cc08ba53262b62'
36 sh ${_pkg}.run --extract-only
41 mkdir -p ${pkgdir}/usr/src/${_pkgname}-${pkgver}
42 cp -a ${srcdir}/${_pkg}/kernel/* ${pkgdir}/usr/src/${_pkgname}-${pkgver}
43 cp ${srcdir}/dkms.conf ${pkgdir}/usr/src/${_pkgname}-${pkgver}
45 install -d -m755 $pkgdir/etc/modprobe.d
46 echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf