Want more features on Pastebin? Sign Up, it's FREE!
Guest

error

By: a guest on Nov 19th, 2010  |  syntax: Bash  |  size: 1.36 KB  |  views: 111  |  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. # Contributor : Giuseppe Calderaro <giuseppecalderaro@gmail.com>
  2.  
  3. pkgname=nvidia-ice
  4. pkgver=260.19.21
  5. _kernver='2.6.36-ice'
  6. pkgrel=1
  7. pkgdesc="NVIDIA drivers for kernel26-ice."
  8. arch=('i686' 'x86_64')
  9. url="http://www.nvidia.com/"
  10. depends=("kernel26-ice" "nvidia-utils=${pkgver}")
  11. conflicts=('nvidia-96xx-ice' 'nvidia-173xx-ice' 'nvidia-ice-beta')
  12. license=('custom')
  13. install=nvidia-ice.install
  14.  
  15. if [ "$CARCH" = "i686" ]; then
  16.         _arch='x86'
  17.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  18.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  19.         md5sums=('2ec917f51e752802646920e9bcd747e7')
  20. elif [ "$CARCH" = "x86_64" ]; then
  21.         _arch='x86_64'
  22.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  23.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  24.         md5sums=('9db612fb5679249627d52bfff0e16f4f')   
  25. fi
  26.  
  27. build() {
  28.         cd $srcdir
  29.         sh ${_pkg}.run --extract-only
  30.         cd ${_pkg}/kernel
  31.         make SYSSRC=/lib/modules/${_kernver}/build module || return 1
  32. }
  33.  
  34. package() {
  35.         install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
  36.                 $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko || return 1
  37.         install -d -m755 $pkgdir/etc/modprobe.d
  38.         echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf || return 1
  39.         sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia-ice.install
  40. }
clone this paste RAW Paste Data