Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

PKGBUILD dkms-nvidia-295.40

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 1.49 KB  |  hits: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: jarda-wien <xstej70@gmail.com>
  2. # Former maintainer: Jason Melton <jason.melton@gmail.com>
  3. # Contributor: Atilla ÖNTAŞ <tarakbumba@gmail.com>
  4.  
  5. pkgname=dkms-nvidia
  6. _pkgname=nvidia
  7. pkgver=295.40
  8. pkgrel=0
  9. pkgdesc="NVIDIA dynamic kernel module (DKMS) drivers for kernel26."
  10. arch=(i686 x86_64)
  11. url="http://www.nvidia.com/"
  12. license=('custom')
  13. depends=('dkms')
  14. optdepends=("nvidia-utils=${pkgver}")
  15. provides=("nvidia=${pkgver}")
  16. conflicts=("nvidia")
  17. install=${_pkgname}.install
  18. options=(!strip)
  19.  
  20. if [ "$CARCH" = "i686" ]; then
  21.         _arch='x86'
  22.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  23.   source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  24.   md5sums=('0bc1561b405443c6d1331934093137fd')
  25. elif [ "$CARCH" = "x86_64" ]; then
  26.         _arch='x86_64'
  27.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  28.   source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  29.   md5sums=('dde8347cde142c329b6bb923747672a3')
  30. fi
  31.  
  32. source[1]="dkms.conf"
  33. md5sums[1]='22f6f03bac7750d16ccb4db191e08b54'
  34.  
  35. build() {
  36.         cd $srcdir
  37.         sh ${_pkg}.run --extract-only
  38. }
  39.  
  40. package()
  41. {
  42.         mkdir -p                                ${pkgdir}/usr/src/${_pkgname}-${pkgver}
  43.         cp -a       ${srcdir}/${_pkg}/kernel/*  ${pkgdir}/usr/src/${_pkgname}-${pkgver}
  44.         cp          ${srcdir}/dkms.conf         ${pkgdir}/usr/src/${_pkgname}-${pkgver}
  45.  
  46.   install -d -m755 $pkgdir/etc/modprobe.d
  47.   echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
  48. }