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

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Jul 19 17:45:15 UTC 2019


    Date: Friday, July 19, 2019 @ 17:45:15
  Author: svenstaro
Revision: 358156

upgpkg: spirv-tools 2019.3-2

Build shared libs

Modified:
  spirv-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-19 14:33:13 UTC (rev 358155)
+++ PKGBUILD	2019-07-19 17:45:15 UTC (rev 358156)
@@ -2,7 +2,7 @@
 
 pkgname=spirv-tools
 pkgver=2019.3
-pkgrel=1
+pkgrel=2
 pkgdesc="API and commands for processing SPIR-V modules"
 arch=('x86_64')
 url="https://www.khronos.org/vulkan/"
@@ -9,7 +9,7 @@
 license=('custom')
 groups=(vulkan-devel)
 depends=(gcc-libs)
-makedepends=(cmake python git)
+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)
 sha256sums=('SKIP'
@@ -20,18 +20,20 @@
 
   rm -rf build && mkdir build && cd build
   cmake .. \
+      -GNinja \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_INSTALL_LIBDIR=lib \
       -DCMAKE_BUILD_TYPE=Release \
       -DSPIRV_WERROR=Off \
+      -DBUILD_SHARED_LIBS=ON \
       -DSPIRV-Headers_SOURCE_DIR=${srcdir}/SPIRV-Headers
-  make
+  ninja
 }
 
 package() {
   cd SPIRV-Tools/build
 
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" ninja install
 
   install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
   install -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"


More information about the arch-commits mailing list