[arch-commits] Commit in intel-opencl-clang/repos (2 files)
Daniel Bermond
dbermond at archlinux.org
Fri Oct 4 17:39:06 UTC 2019
Date: Friday, October 4, 2019 @ 17:39:05
Author: dbermond
Revision: 512844
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 512843, intel-opencl-clang/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: intel-opencl-clang/repos/community-staging-x86_64/PKGBUILD (from rev 512843, intel-opencl-clang/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-04 17:39:05 UTC (rev 512844)
@@ -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=1
+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