[arch-commits] Commit in intel-opencl-clang/repos (2 files)

Bruno Pagani archange at gemini.archlinux.org
Sat May 7 09:16:33 UTC 2022


    Date: Saturday, May 7, 2022 @ 09:16:33
  Author: archange
Revision: 1196146

archrelease: copy trunk to community-testing-x86_64

Added:
  intel-opencl-clang/repos/community-testing-x86_64/
  intel-opencl-clang/repos/community-testing-x86_64/PKGBUILD
    (from rev 1196145, intel-opencl-clang/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: intel-opencl-clang/repos/community-testing-x86_64/PKGBUILD (from rev 1196145, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-05-07 09:16:33 UTC (rev 1196146)
@@ -0,0 +1,38 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_srcname=opencl-clang
+pkgname=intel-${_srcname}
+pkgver=13.0.0.r6+gd06733f
+pkgrel=1
+pkgdesc="Wrapper library around clang that can compile OpenCL C kernels to SPIR-V modules"
+arch=(x86_64)
+url="https://github.com/intel/opencl-clang"
+license=(custom)
+depends=(clang llvm-libs spirv-llvm-translator)
+makedepends=(cmake llvm git)
+# Current point in the used LLVM branch
+_commit=d06733f695682761c3df30c7a36c52ea7b4b3dd8
+source=(git+${url}.git#commit=$_commit)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd ${_srcname}
+  git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./;s/-/+/'
+}
+
+build() {
+  cmake -B build -S ${_srcname} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF \
+    -DSPIRV_TRANSLATOR_DIR=/usr \
+    -DLLVM_NO_DEAD_STRIP=ON \
+    -DPREFERRED_LLVM_VERSION=13.0.1 \
+    -Wno-dev
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm644 ${_srcname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list