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