summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 735142452dd733b29c138e4fe93eb0cfc807870c (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
# Maintainer: Jack Chen <redchenjs@live.com>

pkgname=intel-cpu-runtime
_pkgver=2021.1.1
pkgver=2021.1.1
_pkgrel=119
pkgrel=189
pkgdesc="Intel(R) CPU Runtime for OpenCL(TM) Applications"
arch=('x86_64')
url="https://software.intel.com/content/www/us/en/develop/articles/opencl-runtime-release-notes.html"
license=('custom')
depends=('libxml2' 'tbb' 'hwloc')
provides=('opencl-intel' 'opencl-driver')
source=(
  "https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-tbb-${_pkgver}-${_pkgrel}_amd64.deb"
  "https://apt.repos.intel.com/oneapi/pool/main/intel-oneapi-runtime-opencl-${pkgver}-${pkgrel}_amd64.deb"
)
sha256sums=(
  'SKIP'
  'SKIP'
)
noextract=("${source[@]##*/}")

package() {
  cd "$srcdir"

  ar x "intel-oneapi-runtime-tbb-${_pkgver}-${_pkgrel}_amd64.deb"
  tar -xf data.tar.xz -C "$pkgdir/"

  ar x "intel-oneapi-runtime-opencl-${pkgver}-${pkgrel}_amd64.deb"
  tar -xf data.tar.xz -C "$pkgdir/"

  install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
  cp "$pkgdir/opt/intel/oneapi/lib/licensing/opencl/"* "$pkgdir/usr/share/licenses/$pkgname/"

  install -dm755 "$pkgdir/etc/OpenCL/vendors"
  echo '/opt/intel/oneapi/lib/intel64/libintelocl.so' > "$pkgdir/etc/OpenCL/vendors/intel64.icd"

  rm -rf "$pkgdir/opt/intel/oneapi/lib/etc"
  rm -rf "$pkgdir/opt/intel/oneapi/lib/licensing"
}