blob: a0da20bfca026b1f2602228647bad6fb323ea4e9 (
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
46
47
48
49
50
51
52
53
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=intel-compute-runtime-bin
pkgver=23.52.28202.14
_gmmver=22.3.11
_gmmsover=12
_igcver=1.0.15770.11
_lzver="1.3.$(sed -E 's/([0-9]+\.){2}//' <<< "$pkgver")"
pkgrel=1
pkgdesc='Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver (pre-compiled binaries)'
arch=('x86_64')
url='https://github.com/intel/compute-runtime/'
license=('MIT')
depends=("intel-graphics-compiler-bin=1:${_igcver}")
optdepends=('libva: for cl_intel_va_api_media_sharing'
'libdrm: for cl_intel_va_api_media_sharing')
provides=('intel-compute-runtime' 'intel-gmmlib' 'level-zero-driver' 'opencl-driver')
conflicts=('intel-compute-runtime' 'intel-gmmlib')
options=('!strip' '!emptydirs')
source=("https://github.com/intel/compute-runtime/releases/download/${pkgver}/intel-opencl-icd_${pkgver}_amd64.deb"
"https://github.com/intel/compute-runtime/releases/download/${pkgver}/intel-level-zero-gpu_${_lzver}_amd64.deb"
"${pkgname}-${pkgver}-gmmlib-dev-${_gmmver}_amd64.deb"::"https://github.com/intel/compute-runtime/releases/download/${pkgver}/libigdgmm-dev_${_gmmver}_amd64.deb"
"${pkgname}-${pkgver}-gmmlib-${_gmmver}_amd64.deb"::"https://github.com/intel/compute-runtime/releases/download/${pkgver}/libigdgmm${_gmmsover}_${_gmmver}_amd64.deb"
'LICENSE')
noextract=("intel-opencl-icd_${pkgver}_amd64.deb"
"intel-level-zero-gpu_${_lzver}_amd64.deb"
"${pkgname}-${pkgver}-gmmlib-dev-${_gmmver}_amd64.deb"
"${pkgname}-${pkgver}-gmmlib-${_gmmver}_amd64.deb")
sha256sums=('36af7f519a2570ad1a0f80009e7877c856c9266e984ee042c62445edd1bfe5f4'
'027cf05ba6ef5329de0456097e3c5efd7f45aa7cc8912a2303b6bf442457cef9'
'78b4a1eab0e133c2917a8b7889ef1eae9f32aa07df2795acc5510ddee857bfdc'
'aba2ab44cc7a150c819768a0373c24306fb785ddf626ac6c29bcc90fcbc9bdfd'
'987a002c6c9eb75290d9937735641ef4f4b670591ee79e1ac8edebe16a81872e')
prepare() {
mkdir -p {opencl,level-zero-gpu,gmmlib{,-dev}}-"$pkgver"
bsdtar -xf "intel-opencl-icd_${pkgver}_amd64.deb" -C "opencl-${pkgver}"
bsdtar -xf "intel-level-zero-gpu_${_lzver}_amd64.deb" -C "level-zero-gpu-${pkgver}"
bsdtar -xf "${pkgname}-${pkgver}-gmmlib-dev-${_gmmver}_amd64.deb" -C "gmmlib-dev-${pkgver}"
bsdtar -xf "${pkgname}-${pkgver}-gmmlib-${_gmmver}_amd64.deb" -C "gmmlib-${pkgver}"
}
package() {
bsdtar -xf "opencl-${pkgver}/data.tar.xz" -C "$pkgdir"
bsdtar -xf "level-zero-gpu-${pkgver}/data.tar.xz" -C "$pkgdir"
bsdtar -xf "gmmlib-dev-${pkgver}/data.tar.xz" -C "$pkgdir"
bsdtar -xf "gmmlib-${pkgver}/data.tar.xz" -C "$pkgdir"
mv "${pkgdir}/usr/lib/${CARCH}-linux-gnu"/* "${pkgdir}/usr/lib"
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "$(find "${pkgdir}/usr/lib" -regex '.*libze_intel_gpu.so.[0-9]*' -exec basename {} \;)" "${pkgdir}/usr/lib/libze_intel_gpu.so"
sed -i "s|/usr/lib/${CARCH}-linux-gnu|/usr/lib|" "${pkgdir}"/{etc/OpenCL/vendors/intel.icd,usr/lib/pkgconfig/igdgmm.pc}
rm "${pkgdir}/usr/share/doc"/{intel-{level-zero-gpu,opencl-icd},libigdgmm{-dev,"$_gmmsover"}}/{changelog.gz,copyright}
}
|