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

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Dec 18 02:53:20 UTC 2016


    Date: Sunday, December 18, 2016 @ 02:53:18
  Author: svenstaro
Revision: 284286

upgpkg: spirv-tools 2016.6-1

upstream release 2016.6

Modified:
  spirv-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++++++++++++++-------------
 1 file changed, 19 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-18 00:45:24 UTC (rev 284285)
+++ PKGBUILD	2016-12-18 02:53:18 UTC (rev 284286)
@@ -2,8 +2,11 @@
 # Maintainer: Laurent Carlier <lordheavym at gmail.com>
 
 pkgname=spirv-tools
-pkgver=1.1.1
-_pkgver=1.1-rev1
+pkgver=2016.6
+# SPIRV-Tools is unhelpfully versioned using commit messages like so:
+# https://github.com/KhronosGroup/SPIRV-Tools/commit/5f5fa3a3f1009f0db845d0c9ed76a39fcfe5b20c
+_commit=5f5fa3a3f1009f0db845d0c9ed76a39fcfe5b20c
+_spirv_headers_commit=c470b68225a04965bf87d35e143ae92f831e8110
 pkgrel=1
 pkgdesc="API and commands for processing SPIR-V modules"
 arch=('i686' 'x86_64')
@@ -11,23 +14,26 @@
 license=('custom')
 groups=(vulkan-devel)
 depends=(gcc-libs)
-makedepends=(cmake python)
-source=("https://github.com/KhronosGroup/SPIRV-Tools/archive/spirv-${_pkgver}.tar.gz")
-sha256sums=('c843441dd994b589ac23eac4b83826fe55c5823a7fcbbde6d61826494f6843b5')
+makedepends=(cmake python git)
+source=("git+git://github.com/KhronosGroup/SPIRV-Tools.git#commit=${_commit}"
+        "git+git://github.com/KhronosGroup/SPIRV-Headers.git#commit=${_spirv_headers_commit}")
+sha256sums=('SKIP'
+            'SKIP')
 
 build() {
-  cd SPIRV-Tools-spirv-"${_pkgver}"
-  
-  rm -rf build ; mkdir build ; cd build
-  cmake -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_BUILD_TYPE=Release \
-    ../
+  cd SPIRV-Tools
+
+  rm -rf build && mkdir build && cd build
+  cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DSPIRV-Headers_SOURCE_DIR=${srcdir}/SPIRV-Headers
   make
 }
 
 package() {
-  cd SPIRV-Tools-spirv-"${_pkgver}"/build
-  
+  cd SPIRV-Tools/build
+
   make DESTDIR="${pkgdir}" install
 
   install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"



More information about the arch-commits mailing list