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

Laurent Carlier lcarlier at gemini.archlinux.org
Sat Mar 12 08:51:43 UTC 2022


    Date: Saturday, March 12, 2022 @ 08:51:42
  Author: lcarlier
Revision: 439457

upgpkg: vulkan-tools 1.3.207-1: upstream update 1.3.207

Modified:
  vulkan-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-12 00:32:21 UTC (rev 439456)
+++ PKGBUILD	2022-03-12 08:51:42 UTC (rev 439457)
@@ -1,22 +1,22 @@
 # Maintainer: Laurent Carlier <lordheavym at gmail.com>
 
 pkgname=vulkan-tools
-pkgver=1.2.203
-pkgrel=2
+pkgver=1.3.207
+pkgrel=1
 arch=(x86_64)
 url="https://www.khronos.org/vulkan/"
 pkgdesc="Vulkan Utilities and Tools"
 license=('custom')
 depends=('libx11' 'wayland' 'libvulkan.so')
-makedepends=('cmake' 'python' 'vulkan-headers' 'vulkan-icd-loader' 'glslang' 'spirv-tools')
+makedepends=('cmake' 'python' 'vulkan-headers' 'vulkan-icd-loader' 'wayland-protocols' 'glslang' 'spirv-tools')
 groups=('vulkan-devel')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Tools/archive/v${pkgver}.tar.gz")
-sha256sums=('70b50a14c26dc12c71de5b4847055e318d7af77e7ce13250b1b0a4d40a50bbfd')
+sha256sums=('15ad8e4fe7b389b1b4734cf839eda8cd195de048e3efe0d7aa9e839203f73ba4')
 
 prepare() {
   cd "${srcdir}"/Vulkan-Tools*
 
-  rm -rf build && mkdir build
+  rm -rf build{,-wayland} && mkdir build{,-wayland}
 }
 
 build() {
@@ -37,6 +37,25 @@
     -DCMAKE_BUILD_TYPE=Release \
     ..
   make
+
+  cd "${srcdir}"/Vulkan-Tools*/build-wayland
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+    -DCMAKE_INSTALL_DATADIR=/usr/share \
+    -DCMAKE_SKIP_RPATH=True \
+    -DBUILD_WSI_XCB_SUPPORT=OFF \
+    -DBUILD_WSI_XLIB_SUPPORT=OFF \
+    -DBUILD_WSI_WAYLAND_SUPPORT=On \
+    -DBUILD_CUBE=ON \
+    -DCUBE_WSI_SELECTION=WAYLAND \
+    -DBUILD_VULKANINFO=OFF \
+    -DBUILD_ICD=OFF \
+    -DGLSLANG_INSTALL_DIR=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    ..
+  make
 }
 
 package() {
@@ -44,6 +63,8 @@
   
   make DESTDIR="${pkgdir}" install
 
+  install -m755 ../build-wayland/cube/vkcube-wayland "${pkgdir}"/usr/bin/
+
   install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
   install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list