Browse Source

intel-opencl-sdk: added to repo

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 4 years ago
parent
commit
2760f1d814
No known key found for this signature in database GPG Key ID: 7EACB44BA7B30DB9
  1. 39
      intel-opencl-sdk/PKGBUILD
  2. 11
      intel-opencl-sdk/intel-opencl-sdk.install

39
intel-opencl-sdk/PKGBUILD

@ -0,0 +1,39 @@
# Maintainer: ava1ar <maiL@ava1ar.me>
# Contributor: Daniel Nagy <danielnagy at gmx de>
# Contributor: Nicolas Bigaouette <nbigaouette@gmail.com>
# Contributor: Vojtech "kralyk" Kral
pkgname=intel-opencl-sdk
pkgver=2017_7.0.0.2568
pkgrel=1
pkgdesc="Intel SDK for OpenCL Applications"
arch=('x86_64')
url="https://software.intel.com/en-us/intel-opencl/download"
license=('custom:intel')
depends=('opencl-icd-loader' 'libpng12' 'opencl-headers')
optdepends=('intel-opencl: OpenCL runtime for Intel(R) HD, Iris(TM), and Iris(TM) Pro Graphics for Linux')
install=intel-opencl-sdk.install
source=(intel_sdk_for_opencl_${pkgver}_x64.tgz::http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/12526/intel_sdk_for_opencl_${pkgver}_x64.gz)
sha256sums=('c3e91c25bef6165f769078de21da168816750f9d9a75f1407c1a26757e2819eb')
package() {
cd "${srcdir}"/intel_sdk*/
# Copy license
install -Dm644 EULA.txt "${pkgdir}"/usr/share/licenses/intel-opencl-sdk/license
# Unpack rpms
for i in rpm/*.rpm; do bsdtar -xf "$i" -C "${pkgdir}"; done
# Cleanup
rm -rf "${pkgdir}"/opt/intel/opencl/uninstall*
# Fix runtime_lib_dir and sdk_dir
sed -i -e 's|^runtime_lib_dir=.*|runtime_lib_dir=/opt/intel/opencl|g' \
-e 's|^sdk_dir=.*|sdk_dir=/opt/intel/opencl/SDK|g' \
"${pkgdir}"/opt/intel/opencl/SDK/bin/{KBServer64,ioc64,CBReport,CodeBuilder}
# Symlink binaries
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/intel/opencl/SDK/bin/ioc64" "${pkgdir}/usr/bin/ioc"
}

11
intel-opencl-sdk/intel-opencl-sdk.install

@ -0,0 +1,11 @@
post_install() {
ldconfig
}
post_upgrade() {
ldconfig
}
post_remove() {
ldconfig
}
Loading…
Cancel
Save