[arch-commits] Commit in spirv-llvm-translator/trunk (PKGBUILD)

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


    Date: Thursday, March 5, 2020 @ 08:07:04
  Author: archange
Revision: 590693

upgpkg: spirv-llvm-translator 9.0.1.1-1

Modified:
  spirv-llvm-translator/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-05 07:17:52 UTC (rev 590692)
+++ PKGBUILD	2020-03-05 08:07:04 UTC (rev 590693)
@@ -1,29 +1,25 @@
 # Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
 
 _srcname=SPIRV-LLVM-Translator
 pkgname=${_srcname,,}
 _build=1
-pkgver=9.0.0.${_build}
-pkgrel=3
+pkgver=9.0.1.${_build}
+pkgrel=1
 pkgdesc="Tool and a library for bi-directional translation between SPIR-V and LLVM IR"
 arch=(x86_64)
 url="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/"
 license=(custom)
+depends=(llvm-libs)
 makedepends=(cmake llvm spirv-tools)
 checkdepends=(python python-setuptools clang)
 source=("${url}/archive/v${pkgver%.*}-${_build}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('19eff5daedb2c1aac8ab8d64a9f8228976dbaad71b1c1a3d3cd4c17cccdb0e55')
+sha256sums=('44b3c4fdb640ac9b1072784f8c0e2e126ccc46a1c170c5f0a1a384c2942d9de6')
 
-prepare() {
-    mkdir -p build
-}
-
 build() {
-    cd build
-    
     # workaround to fix luxmark crashing issue: use -O0
     # https://github.com/intel/compute-runtime/issues/218
-    cmake ../${_srcname}-${pkgver%.*}-${_build} \
+    cmake -B build -S ${_srcname}-${pkgver%.*}-${_build} \
         -DBUILD_SHARED_LIBS=ON \
         -DCMAKE_BUILD_TYPE=Release \
         -DCMAKE_CXX_FLAGS_RELEASE='-O0' \
@@ -32,7 +28,7 @@
         -DLLVM_INCLUDE_TESTS=ON \
         -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
         -Wno-dev
-    make
+    make -C build
 }
 
 check() {
@@ -41,6 +37,6 @@
 
 package() {
     make -C build DESTDIR="${pkgdir}" install
-    install -D -m755 build/tools/llvm-spirv/llvm-spirv -t "${pkgdir}"/usr/bin
-    install -D -m644 ${_srcname}-${pkgver%.*}-${_build}/LICENSE.TXT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    install -Dm755 build/tools/llvm-spirv/llvm-spirv -t "${pkgdir}"/usr/bin
+    install -Dm644 ${_srcname}-${pkgver%.*}-${_build}/LICENSE.TXT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list