updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / intel-opencl-sdk / PKGBUILD
blob2098b70232063de75aa508ed79abdb26217a98e5
1 # Contributor: Nicolas Bigaouette <nbigaouette@gmail.com>
2 # Maintainer: Vojtech "kralyk" Kral
4 pkgname='intel-opencl-sdk'
5 pkgver=1.5
6 pkgrel=1
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"
18 build() { true; } # Nothing to do
20 package()
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
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*
33   #Symlink libs
34   #mkdir -p "${pkgdir}/usr/lib"
35   #ln -s "${_ipath}/libOpenCL.so" "${pkgdir}/usr/lib/libOpenCL.so"
36   # - moved to libopencl