Skip to content

Instantly share code, notes, and snippets.

@bemasher
Created March 25, 2016 02:45
Show Gist options
  • Save bemasher/bd02cb4e553109e4a3dd to your computer and use it in GitHub Desktop.
Save bemasher/bd02cb4e553109e4a3dd to your computer and use it in GitHub Desktop.
AUR intel-opencl-sdk for 2016_6.0.0.1049
# Maintainer: Daniel Nagy <danielnagy at gmx de>
# Contributor: Nicolas Bigaouette <[email protected]>
# Contributor: Vojtech "kralyk" Kral
# Contributor: Douglas Hall <[email protected]>
pkgname='intel-opencl-sdk'
pkgver=2016_6.0.0.1049
pkgrel=0
pkgdesc="Intel’s implementation of the OpenCL standard optimized for Intel processors."
arch=('x86_64')
url="http://software.intel.com/en-us/vcsource/tools/opencl"
license=('intel')
depends=('opencl-headers' 'libcl' 'llvm' 'intel-tbb' 'numactl' 'libpng12' )
makedepends=('rpmextract')
provides=('opencl')
install='intel-opencl-sdk.install'
source=('http://registrationcenter-download.intel.com/akdlm/irc_nas/8522/intel_sdk_for_opencl_2016_6.0.0.1049_x64.tgz')
sha256sums=('7878850173ca4dc97a7897bc561199f7f13987ee12d82c886b94a63fd71c1e5f')
_ipath="/opt/intel/opencl-sdk"
package() {
#Unpack RPM
cd "${srcdir}"/intel_sdk*/
for i in rpm/*.rpm; do rpmextract.sh "$i"; done
#Register ICD
mkdir -p "${pkgdir}/etc/OpenCL/vendors"
echo "${_ipath}/lib64/libintelocl.so" > "${pkgdir}/etc/OpenCL/vendors/intel.icd"
# The OpenCL ICD specifications: http://www.khronos.org/registry/cl/extensions/khr/cl_khr_icd.txt
#Install files
mkdir -p "${pkgdir}/${_ipath}"
cp -r opt/intel/opencl-*/* "${pkgdir}/${_ipath}"
# #Symlink binaries
mkdir -p "${pkgdir}/usr/bin"
ln -s "${_ipath}/bin/ioc64" "${pkgdir}/usr/bin/ioc"
ln -s opencl-sdk "${pkgdir}"/opt/intel/opencl-1.2-sdk-6.0.0.1049
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment