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

Untitled

By: a guest on Aug 27th, 2010  |  syntax: None  |  size: 2.57 KB  |  views: 82  |  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: Jeremy Sands <cto@jeremysands.com>
  2. # Contributors: Thomas Baechler <thomas@archlinux.org>
  3. #               James Rayner <iphitus@gmail.com>
  4. #               Erik Hardesty <dalingrin@gmail.com>
  5. #               Dan Vratil <vratil@progdansoft.com>
  6.  
  7. pkgname=lib32-nvidia-utils-beta
  8. pkgver=256.44
  9. pkgrel=1
  10. pkgdesc="NVIDIA drivers utilities and libraries."
  11. arch=(x86_64)
  12. url="http://www.nvidia.com/"
  13. license=('custom')
  14. groups=('lib32')
  15. depends=('lib32-libxext')
  16. conflicts=('lib32-libgl' 'lib32-ati-fglrx-utils' 'lib32-nvidia-utils')
  17. provides=('lib32-libgl' "lib32-nvidia-utils=${pkgver}")
  18. license=('custom')
  19. source=(ftp://download.nvidia.com/XFree86/Linux-x86_64/$pkgver/NVIDIA-Linux-x86_64-$pkgver.run)
  20.  
  21. options=(docs !strip)
  22.  
  23. build()
  24. {
  25.   cd $srcdir
  26.   if [ -d NVIDIA-Linux-x86_64-${pkgver} ]; then rm -rf NVIDIA-Linux-x86_64-${pkgver}; fi
  27.  
  28.   # Extract sources
  29.   sh NVIDIA-Linux-x86_64-${pkgver}.run --extract-only
  30.   cd NVIDIA-Linux-x86_64-${pkgver}
  31.  
  32.   # Create install dirs
  33.   mkdir -p $pkgdir/usr/lib32//tls
  34.  
  35.   # Install libraries
  36.   install 32/{libGL,libnvidia-compiler,libnvidia-glcore,libcuda,libnvidia-tls,libvdpau_nvidia}.so.${pkgver} $pkgdir/usr/lib32 || return 1
  37.   install 32/tls/libnvidia-tls.so.${pkgver} $pkgdir/usr/lib32/tls
  38.   install -m755 32/libOpenCL.so.1.0.0 $pkgdir/usr/lib32 || return 1
  39.   #install {libXvMCNVIDIA.a,libXvMCNVIDIA.so.${pkgver}} ${pkgdir}/usr/lib32/ || return 1
  40.  
  41.   # Create symlinks
  42.   cd $pkgdir/usr/lib32
  43.   ln -s libOpenCL.so.1.0.0 libOpenCL.so.1 || return 1
  44.   ln -s libOpenCL.so.1 libOpenCL.so || return 1
  45.   ln -s libGL.so.$pkgver libGL.so.1 || return 1
  46.   ln -s libGL.so.$pkgver libGL.so || return 1
  47.   ln -s libnvidia-glcore.so.$pkgver libnvidia-glcore.so.1 || return 1
  48.   ln -s libnvidia-glcore.so.$pkgver libnvidia-glcore.so || return 1
  49.   ln -s libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1 || return 1
  50.   ln -s libnvidia-cfg.so.$pkgver libnvidia-cfg.so || return 1
  51.   ln -s libnvidia-compiler.so.$pkgver libnvidia-compiler.so.1 || return 1
  52.   ln -s libnvidia-compiler.so.$pkgver libnvidia-compiler.so || return 1
  53.   ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so.1 || return 1
  54.   ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so || return 1
  55.   ln -s libcuda.so.$pkgver libcuda.so.1 || return 1
  56.   ln -s libcuda.so.$pkgver libcuda.so || return 1
  57.   #ln -s libXvMCNVIDIA.so.$pkgver libXvMCNVIDIA_dynamic.so.1 || return 1
  58.   ln -sf libvdpau_nvidia.so.${pkgver} "${pkgdir}/usr/lib32/libvdpau_nvidia.so.1"
  59.  
  60.   find $pkgdir/usr/ -type d -exec chmod 755 {} \;
  61.   #chmod 644 $pkgdir/usr/lib32/libXvMCNVIDIA.a
  62. }
  63.  
  64. md5sums=('0335cadf61404b625c80a6d77c5d8822')