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

Bruno Pagani archange at gemini.archlinux.org
Wed Jun 22 07:56:49 UTC 2022


    Date: Wednesday, June 22, 2022 @ 07:56:49
  Author: archange
Revision: 1238926

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: intel-opencl-clang/repos/community-staging-x86_64/PKGBUILD (from rev 1238925, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-22 07:56:49 UTC (rev 1238926)
@@ -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=14.0.0.r1+g8c2aaa2
+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=8c2aaa26d080d831070f31228a0c26db2bc70ae1
+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=14.0.5 \
+    -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