[arch-commits] Commit in intel-opencl-clang/repos (2 files)
Bruno Pagani
archange at archlinux.org
Thu Oct 29 11:02:05 UTC 2020
Date: Thursday, October 29, 2020 @ 11:02:05
Author: archange
Revision: 736495
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 736494, intel-opencl-clang/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: intel-opencl-clang/repos/community-staging-x86_64/PKGBUILD (from rev 736494, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-10-29 11:02:05 UTC (rev 736495)
@@ -0,0 +1,30 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_srcname=opencl-clang
+pkgname=intel-${_srcname}
+pkgver=11.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=('0c0d5fb4bfc85c1c1ae4b441eea223193721ecdd3d9165bcc6f7859d90e5bf66')
+
+build() {
+ cmake -B build -S ${_srcname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF \
+ -DSPIRV_TRANSLATOR_DIR=/usr \
+ -DLLVM_NO_DEAD_STRIP=ON \
+ -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