Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

nvidia-96xx-utils PKGBUILD version 96.43.20

By: alexisdm on Jul 28th, 2011  |  syntax: Bash  |  size: 3.35 KB  |  views: 155  |  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. # Based on nvidia-173xx-utils
  2. # You'll need to get the files "nvidia.install" and "20-nvidia.conf" from nvidia-173xx-utils aur tarball
  3.  
  4. pkgname=nvidia-96xx-utils
  5. pkgver=96.43.20
  6. pkgrel=2
  7. pkgdesc="NVIDIA drivers utilities and libraries, 96xx branch."
  8. arch=('i686' 'x86_64')
  9. [ "$CARCH" = "i686"   ] && ARCH=x86
  10. [ "$CARCH" = "x86_64" ] && ARCH=x86_64
  11. url="http://www.nvidia.com/"
  12. depends=('xorg-server')
  13. optdepends=('gtk2: nvidia-settings' 'pkgconfig: nvidia-xconfig')
  14. conflicts=('lib32-libgl' 'lib32-ati-fglrx-utils' 'lib32-nvidia-utils' 'lib32-nvidia-utils-beta' 'libgl' 'ati-fglrx-utils' 'nvidia-utils' 'nvidia-utils-beta')
  15. provides=('libgl' 'nvidia-96xx-utils')
  16. license=('custom')
  17. install=nvidia.install
  18. options=(!strip)
  19. backup=('etc/X11/xorg.conf.d/20-nvidia.conf')
  20. [ "$CARCH" = "i686" ] && ARCH=x86 && NV=0
  21. [ "$CARCH" = "x86_64" ] && ARCH=x86_64 && NV=2
  22. license=('custom')
  23. source=(ftp://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}.run)
  24.  
  25. sha256sums=('bc778062cf745ee4916de77a702f702312d33eeb3b6f379b63e4366fa5197517')
  26. [ "$CARCH" = "x86_64" ] && sha256sums=('562107a262e250b836966e29851628f6162ee2857d53252221c780d9b201de18')
  27.  
  28. source[1]='20-nvidia.conf'
  29. sha256sums[1]='fc58443a47f07eb713b05f0fbe625a7a9f1fccd8e9ba0672cbeba6824adae89f'
  30.  
  31. build()
  32. {
  33.     cd $srcdir
  34.         sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}.run --extract-only
  35.         cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}/usr/
  36.  
  37.         mkdir -p $pkgdir/usr/{lib,bin,share/applications,share/pixmaps,share/man/man1}
  38.         mkdir -p $pkgdir/usr/lib/xorg/modules/{extensions,drivers}
  39.         mkdir -p $pkgdir/usr/share/licenses/nvidia-96xx/
  40.  
  41.         install lib/{libGLcore,libGL,libnvidia-cfg,tls/libnvidia-tls}.so.${pkgver} \
  42.         $pkgdir/usr/lib/
  43.         install -m644 share/man/man1/* $pkgdir/usr/share/man/man1/
  44.         rm $pkgdir/usr/share/man/man1/nvidia-installer.1.gz
  45.         install X11R6/lib/libXv* $pkgdir/usr/lib/
  46.         install -m644 share/applications/nvidia-settings.desktop $pkgdir/usr/share/applications/
  47.         # fix nvidia .desktop file
  48.         sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $pkgdir/usr/share/applications/nvidia-settings.desktop
  49.         install -m644 share/pixmaps/nvidia-settings.png $pkgdir/usr/share/pixmaps/
  50.         install X11R6/lib/modules/drivers/nvidia_drv.so $pkgdir/usr/lib/xorg/modules/drivers
  51.         install X11R6/lib/modules/extensions/libglx.so.$pkgver $pkgdir/usr/lib/xorg/modules/extensions
  52.         install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $pkgdir/usr/bin/
  53.         cd $pkgdir/usr/lib/
  54.         ln -s libGL.so.$pkgver libGL.so
  55.         ln -s libGL.so.$pkgver libGL.so.1
  56.         ln -s libGLcore.so.$pkgver libGLcore.so.1
  57.         ln -s libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
  58.         ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so.1
  59.         ln -s libXvMCNVIDIA.so.$pkgver libXvMCNVIDIA_dynamic.so.1
  60.  
  61.         cd $pkgdir/usr/lib/xorg/modules/extensions
  62.         ln -s libglx.so.$pkgver libglx.so
  63.  
  64.         install -m644 $srcdir/NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}/LICENSE $pkgdir/usr/share/licenses/nvidia-96xx/
  65.         ln -s nvidia-96xx $pkgdir/usr/share/licenses/nvidia-96xx-utils
  66.  
  67.         install -D -m644 $srcdir/NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}/usr/share/doc/README.txt $pkgdir/usr/share/doc/nvidia-96xx/README
  68.  
  69.         find $pkgdir/usr -type d -exec chmod 755 {} \;
  70.  
  71.     # Install xorg.conf.d file for nvidia autodetection in xorg.conf-less configurations
  72.         install -D -m644 $srcdir/20-nvidia.conf $pkgdir/etc/X11/xorg.conf.d/20-nvidia.conf
  73. }
clone this paste RAW Paste Data