updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / dkms-nvidia / PKGBUILD
blob133d5134b96d711b5da4fb7bca90b89aa34686dd
1 # Maintainer: Jason Melton <jason.melton@gmail.com>
2 # Contributor: Atilla ÖNTAŞ <tarakbumba@gmail.com>
4 pkgname=dkms-nvidia
5 _pkgname=nvidia
6 pkgver=290.10
7 pkgrel=1
8 pkgdesc="NVIDIA dynamic kernel module (DKMS) drivers for kernel26."
9 arch=(i686 x86_64)
10 url="http://www.nvidia.com/"
11 license=('custom')
12 depends=('dkms')
13 optdepends=("nvidia-utils=${pkgver}")
14 provides=("nvidia=${pkgver}")
15 conflicts=("nvidia")
16 install=${_pkgname}.install
17 options=(!strip)
19 if [ "$CARCH" = "i686" ]; then
20         _arch='x86'
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
25         _arch='x86_64'
26         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
27   source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
28   md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
31 source[1]="dkms.conf"
32 md5sums[1]='d263c0a91f7aea7b59cc08ba53262b62'
34 build() {
35         cd $srcdir
36         sh ${_pkg}.run --extract-only
39 package() 
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