[arch-commits] Commit in spirv-llvm-translator/repos/community-x86_64 (2 files)

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


    Date: Thursday, March 5, 2020 @ 08:07:17
  Author: archange
Revision: 590694

archrelease: copy trunk to community-x86_64

Added:
  spirv-llvm-translator/repos/community-x86_64/PKGBUILD
    (from rev 590693, spirv-llvm-translator/trunk/PKGBUILD)
Deleted:
  spirv-llvm-translator/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 42 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-05 08:07:04 UTC (rev 590693)
+++ PKGBUILD	2020-03-05 08:07:17 UTC (rev 590694)
@@ -1,46 +0,0 @@
-# Maintainer: Daniel Bermond <dbermond at archlinux.org>
-
-_srcname=SPIRV-LLVM-Translator
-pkgname=${_srcname,,}
-_build=1
-pkgver=9.0.0.${_build}
-pkgrel=3
-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)
-makedepends=(cmake llvm spirv-tools)
-checkdepends=(python python-setuptools clang)
-source=("${url}/archive/v${pkgver%.*}-${_build}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('19eff5daedb2c1aac8ab8d64a9f8228976dbaad71b1c1a3d3cd4c17cccdb0e55')
-
-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} \
-        -DBUILD_SHARED_LIBS=ON \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DCMAKE_CXX_FLAGS_RELEASE='-O0' \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-        -DLLVM_INCLUDE_TESTS=ON \
-        -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
-        -Wno-dev
-    make
-}
-
-check() {
-    make -C build test
-}
-
-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}/
-}

Copied: spirv-llvm-translator/repos/community-x86_64/PKGBUILD (from rev 590693, spirv-llvm-translator/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-05 08:07:17 UTC (rev 590694)
@@ -0,0 +1,42 @@
+# 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.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=('44b3c4fdb640ac9b1072784f8c0e2e126ccc46a1c170c5f0a1a384c2942d9de6')
+
+build() {
+    # workaround to fix luxmark crashing issue: use -O0
+    # https://github.com/intel/compute-runtime/issues/218
+    cmake -B build -S ${_srcname}-${pkgver%.*}-${_build} \
+        -DBUILD_SHARED_LIBS=ON \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_CXX_FLAGS_RELEASE='-O0' \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
+        -DLLVM_INCLUDE_TESTS=ON \
+        -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
+        -Wno-dev
+    make -C build
+}
+
+check() {
+    make -C build test
+}
+
+package() {
+    make -C build DESTDIR="${pkgdir}" install
+    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