summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1625087a439298e5b2c9eae769fd150780aee4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: nick black <dankamongmen@gmail.com>
# Contributor: 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=2020.1.395
pkgrel=2
pkgdesc="Intel SDK for OpenCL Applications"
arch=('x86_64')
url="https://software.intel.com/en-us/intel-opencl/download"
license=('custom:intel')
depends=('cpio' 'opencl-icd-loader' 'libpng12' 'opencl-headers')
optdepends=('intel-opencl-runtime: OpenCL runtime for Intel Core and Xeon processors')
source=(http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/16625/intel_sdk_for_opencl_applications_${pkgver}.tar.gz)
sha256sums=('4b8a1e39888e9fb13f717ea6f91aaf6ae8677043ff59a95767fb2f5d10f73850')

build() {
pwd
  chmod 0755 ../pkg
echo "MAKING: ${pkgdir}/opt/intel"
  mkdir -p "${pkgdir}/opt/intel"
  chmod 0755 "${pkgdir}"
  xdir="${srcdir}/intel_sdk_for_opencl_applications_${pkgver}"
  cd "${xdir}"

         #-e 's/COMPONENTS=.*/COMPONENTS=opencl_cpu_rt_meta/' \
  # prep the silent.cfg file
  sed -i -e 's/ACCEPT_EULA=.*/ACCEPT_EULA=accept/' \
         -e "s#PSET_INSTALL_DIR=\(.*\)#PSET_INSTALL_DIR=${pkgdir}\1#" \
         silent.cfg

  # if run as UID 0 (as package() does), install.sh unconditionally writes to
  # /opt/intel. If run as some other UID (and --user-mode is provided), it'll
  # instead write to $HOME. so we change our UID, and force $HOME.
  # doubleplusugh.
  #export HOME="${pkgdir}"
  ./install.sh -s silent.cfg --ignore-cpu --cli-mode --user-mode
}

package() {
  # FIXME set ownership
  echo "arrrrrr"
}