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

Laurent Carlier lcarlier at archlinux.org
Thu Feb 18 14:37:33 UTC 2021


    Date: Thursday, February 18, 2021 @ 14:37:33
  Author: lcarlier
Revision: 408492

upgpkg: spirv-tools 2020.6-1: upstream update 2020.6

Modified:
  spirv-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-18 07:47:09 UTC (rev 408491)
+++ PKGBUILD	2021-02-18 14:37:33 UTC (rev 408492)
@@ -1,7 +1,7 @@
 # Maintainer: Laurent Carlier <lordheavym at gmail.com>
 
 pkgname=spirv-tools
-pkgver=2020.4
+pkgver=2020.6
 pkgrel=1
 pkgdesc="API and commands for processing SPIR-V modules"
 arch=('x86_64')
@@ -8,17 +8,22 @@
 url="https://www.khronos.org/vulkan/"
 license=('custom')
 groups=(vulkan-devel)
-depends=(gcc-libs)
-makedepends=(cmake python git ninja)
+depends=('gcc-libs')
+makedepends=('cmake' 'python' 'git' 'ninja')
 source=("git+https://github.com/KhronosGroup/SPIRV-Tools.git#tag=v${pkgver}"
-        git+https://github.com/KhronosGroup/SPIRV-Headers.git)
+        "git+https://github.com/KhronosGroup/SPIRV-Headers.git#commit=f027d53ded7e230e008d37c8b47ede7cd308e19d") # for v2020.6
 sha256sums=('SKIP'
             'SKIP')
 
-build() {
+prepare() {
   cd SPIRV-Tools
 
-  rm -rf build && mkdir build && cd build
+  rm -rf build && mkdir build
+}
+
+build() {
+  cd SPIRV-Tools/build
+
   cmake .. \
       -GNinja \
       -DCMAKE_INSTALL_PREFIX=/usr \
@@ -26,7 +31,8 @@
       -DCMAKE_BUILD_TYPE=Release \
       -DSPIRV_WERROR=Off \
       -DBUILD_SHARED_LIBS=ON \
-      -DSPIRV-Headers_SOURCE_DIR=${srcdir}/SPIRV-Headers
+      -DSPIRV_TOOLS_BUILD_STATIC=OFF \
+      -DSPIRV-Headers_SOURCE_DIR="${srcdir}"/SPIRV-Headers
   ninja
 }
 
@@ -35,6 +41,6 @@
 
   DESTDIR="${pkgdir}" ninja install
 
-  install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  install -m644 ../LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
 }


More information about the arch-commits mailing list