This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Test

By: a guest on Mar 18th, 2011  |  syntax: None  |  size: 1.79 KB  |  views: 89  |  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: Atilla ÖNTAŞ <tarakbumba@gmail.com>
  2. # update to testing 270.30: Gustavo Alvarez <sl1pkn07@gmail.com>
  3.  
  4.  
  5. _modname=nvidia
  6. _oldpkgver=260.19.44
  7. pkgname="dkms-nvidia"
  8. pkgver=270.30
  9. pkgrel=1
  10. pkgdesc="NVIDIA dynamic kernel module (DKMS) drivers, utilities and libraries for kernel26."
  11. arch=(i686 x86_64)
  12. url="http://www.nvidia.com/"
  13. license=('custom')
  14. depends=('dkms' "nvidia-utils" "kernel26-headers")
  15. replace=('nvidia' 'nvidia-ck' 'nvidia-pf' 'nvidia-suspend2' 'nvidia-mm')
  16. conflicts=('nvidia' 'nvidia-ck' 'nvidia-pf' 'nvidia-suspend2' 'nvidia-mm')
  17. provides=('nvidia' 'nvidia-ck' 'nvidia-pf' 'nvidia-suspend2' 'nvidia-mm')
  18. install="nvidia.install"
  19.  
  20. if [ "$CARCH" = "i686" ]; then
  21.         _arch='x86'
  22.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  23.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  24.         md5sums=('ff319212b9ac52d645df31027c31ee45')
  25.  
  26. elif [ "$CARCH" = "x86_64" ]; then
  27.         _arch='x86_64'
  28.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  29.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  30.         md5sums=('2fa08295aa0d0ea21646bdc9630c5116')
  31. fi
  32.  
  33. source[1]="dkms.conf"
  34. md5sums[1]='d0556aea9c84d8cfbe7ea792a468e02f'
  35.  
  36.  
  37. build() {
  38.         cd $srcdir
  39.         sh ${_pkg}.run --extract-only
  40. }
  41.  
  42. package() {
  43.         mkdir -p $pkgdir/usr/src/$_modname-$pkgver
  44.         cp -a $srcdir/${_pkg}/kernel/* \
  45.                 $pkgdir/usr/src/$_modname-$pkgver
  46.         install -d -m755 $pkgdir/etc/modprobe.d
  47.         echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
  48.         sed -i -e "s/OLD_PACKAGE_VERSION/${_oldpkgver}/" $startdir/nvidia.install
  49.         sed -i -e "s/PACKAGE_VERSION/${pkgver}/" $startdir/nvidia.install
  50.         cp $srcdir/dkms.conf $pkgdir/usr/src/$_modname-$pkgver/
  51.         sed -i -e "s/PACKAGE_VERSION=\".*\"/PACKAGE_VERSION=\"${pkgver}\"/" $pkgdir/usr/src/$_modname-$pkgver/dkms.conf
  52. }
clone this paste RAW Paste Data