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

Daniel Bermond dbermond at archlinux.org
Sun Nov 10 19:00:48 UTC 2019


    Date: Sunday, November 10, 2019 @ 19:00:47
  Author: dbermond
Revision: 526488

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

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

Copied: intel-opencl-clang/repos/community-testing-x86_64/PKGBUILD (from rev 526487, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-11-10 19:00:47 UTC (rev 526488)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_srcname=opencl-clang
+pkgname=intel-${_srcname}
+pkgver=9.0.0
+pkgrel=2
+pkgdesc="A 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)
+makedepends=(cmake llvm spirv-llvm-translator git)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('f98b9122da4066e96853429a3cff9e6c0bfb0fee14fa2be5a22e43546a5cfd93')
+
+prepare() {
+    mkdir -p build
+}
+
+build() {
+    cd build
+    cmake ../${_srcname}-${pkgver} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF \
+        -DSPIRV_TRANSLATOR_DIR=/usr \
+        -DLLVM_NO_DEAD_STRIP=ON \
+        -Wno-dev
+    make
+}
+
+package() {
+    cd build
+    make DESTDIR="${pkgdir}" install
+    install -Dm644 ../${_srcname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list