Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 31st, 2011  |  syntax: Bash  |  size: 1.18 KB  |  hits: 81  |  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: Nicolas Bigaouette <nbigaouette@gmail.com>
  2. # Maintainer: Vojtech "kralyk" Kral
  3.  
  4. pkgname='intel-opencl-sdk'
  5. pkgver=1.1
  6. pkgrel=5
  7. pkgdesc="Intel’s implementation of the OpenCL standard optimized for Intel processors."
  8. arch=('x86_64')
  9. url="http://software.intel.com/en-us/articles/opencl-sdk/"
  10. license=('intel')
  11. depends=('opencl-headers' 'libcl' 'llvm' 'intel-tbb' 'numactl')
  12. provides=('opencl')
  13. install='intel-opencl-sdk.install'
  14. source=("http://software.intel.com/file/35820/${pkgname/-/_}_${pkgver}_lnx_64.rpm")
  15. sha256sums=('4ef2d6ec4ea4c57d688bdbcd536dfb4e452a397e979bca2a961f455621ceafd5')
  16. _ipath="/opt/intel/opencl-sdk"
  17.  
  18. build() { true; } # Nothing to do
  19.  
  20. package()
  21. {
  22.   #Register ICD
  23.   mkdir -p "${pkgdir}/etc/OpenCL/vendors"
  24.   echo "${_ipath}/libintelocl.so" > "${pkgdir}/etc/OpenCL/vendors/intel.icd"
  25.   # The OpenCL ICD specifications: http://www.khronos.org/registry/cl/extensions/khr/cl_khr_icd.txt
  26.  
  27.   #Install files
  28.   mkdir -p "${pkgdir}/${_ipath}"
  29.   install "${srcdir}/usr/lib64/libOpenCL.so" -t "${pkgdir}/${_ipath}"
  30.   install "${srcdir}/usr/lib64/OpenCL/vendors/intel/"{*.so,*.rtl,*.pch} "${pkgdir}/${_ipath}"
  31.   rm "${pkgdir}/${_ipath}/"libtbb*
  32. }