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

Bruno Pagani archange at gemini.archlinux.org
Sat Oct 23 08:31:46 UTC 2021


    Date: Saturday, October 23, 2021 @ 08:31:46
  Author: archange
Revision: 1032945

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 1032944, intel-opencl-clang/trunk/PKGBUILD)

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

Copied: intel-opencl-clang/repos/community-staging-x86_64/PKGBUILD (from rev 1032944, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-10-23 08:31:46 UTC (rev 1032945)
@@ -0,0 +1,32 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_srcname=opencl-clang
+pkgname=intel-${_srcname}
+pkgver=13.0.0
+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)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('fea502dadbbe9f15cb6280e4931ad5b88b7df3256a15126e8453294367afd75f')
+
+build() {
+  # PREFERRED_LLVM_VERSION is used to allow building with upcoming LLVM minor releases
+  cmake -B build -S ${_srcname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF \
+    -DSPIRV_TRANSLATOR_DIR=/usr \
+    -DLLVM_NO_DEAD_STRIP=ON \
+    -DPREFERRED_LLVM_VERSION=13.0.0 \
+    -Wno-dev
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm644 ${_srcname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list