[arch-commits] Commit in intel-opencl-clang/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Thu Mar 5 08:08:57 UTC 2020


    Date: Thursday, March 5, 2020 @ 08:08:57
  Author: archange
Revision: 590695

upgpkg: intel-opencl-clang 9.0.1-1

Modified:
  intel-opencl-clang/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-05 08:07:17 UTC (rev 590694)
+++ PKGBUILD	2020-03-05 08:08:57 UTC (rev 590695)
@@ -3,8 +3,8 @@
 
 _srcname=opencl-clang
 pkgname=intel-${_srcname}
-pkgver=9.0.0
-pkgrel=3
+pkgver=9.0.1
+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/"
@@ -12,25 +12,19 @@
 depends=(clang llvm-libs spirv-llvm-translator)
 makedepends=(cmake llvm git)
 source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('f98b9122da4066e96853429a3cff9e6c0bfb0fee14fa2be5a22e43546a5cfd93')
+sha256sums=('058d51e88cdb018fd3016d1ee2042018bd1c3d131037d4ff2cb3f08d79a8fe6d')
 
-prepare() {
-    mkdir -p build
-}
-
 build() {
-    cd build
-    cmake ../${_srcname}-${pkgver} \
+    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
+    make -C build
 }
 
 package() {
-    cd build
-    make DESTDIR="${pkgdir}" install
-    install -Dm644 ../${_srcname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+    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