[arch-commits] Commit in intel-compute-runtime/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Thu Apr 16 01:12:10 UTC 2020
Date: Thursday, April 16, 2020 @ 01:12:08
Author: archange
Revision: 615089
upgpkg: intel-compute-runtime 20.14.16441-1
Update + rebuild for LLVM 10 stack.
Changes credit to dbermond.
Modified:
intel-compute-runtime/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-16 01:04:17 UTC (rev 615088)
+++ PKGBUILD 2020-04-16 01:12:08 UTC (rev 615089)
@@ -2,25 +2,28 @@
# Maintainer: Bruno Pagani <archange at archlinux.org>
pkgname=intel-compute-runtime
-pkgver=20.13.16352
+pkgver=20.14.16441
pkgrel=1
-pkgdesc="Intel(R) Graphics Compute Runtime for OpenCL(TM). Replaces Beignet for Gen8 (Broadwell) and beyond."
+pkgdesc="Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver"
arch=(x86_64)
url="https://01.org/compute-runtime"
license=(MIT)
depends=(gcc-libs intel-gmmlib intel-graphics-compiler)
-makedepends=(cmake libva)
+makedepends=(cmake libva level-zero-headers)
optdepends=('libva: for cl_intel_va_api_media_sharing'
'libdrm: for cl_intel_va_api_media_sharing')
-provides=(opencl-driver)
+provides=(opencl-driver level-zero-driver)
source=(https://github.com/intel/compute-runtime/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('a0eff6a612e2711ae8a1f19746a53699abecc22bc0f8605ef22a7e176372b4d0')
+sha256sums=('169e7833121beea8ec69ff9249ca06f3bae981e14593c7a62f363d4991acb7e2')
build() {
+ export CFLAGS+=" ${CPPFLAGS}"
+ export CXXFLAGS+=" ${CPPFLAGS}"
cmake -B build -S compute-runtime-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -Wno-dev
make -C build
}
@@ -28,4 +31,11 @@
make -C build DESTDIR="${pkgdir}" install
install -Dm755 build/bin/libocloc.so -t "${pkgdir}"/usr/lib/intel-opencl
install -Dm644 compute-runtime-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+
+ local _lz_sover
+ local _lz_major
+ _lz_sover=$(find "${pkgdir}"/usr/lib -type f -name 'libze_intel_gpu.so.*.*.*' | sed 's/^.*\.so\.//')
+ _lz_major=${_lz_sover%%.*}
+ ln -s libze_intel_gpu.so.${_lz_sover} "${pkgdir}"/usr/lib/libze_intel_gpu.so
+ ln -s libze_intel_gpu.so.${_lz_sover} "${pkgdir}"/usr/lib/libze_intel_gpu.so.${_lz_major}
}
More information about the arch-commits
mailing list