1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
7 url="https://www.khronos.org/vulkan/"
8 pkgdesc="Vulkan Utilities and Tools"
10 depends=('libx11' 'wayland' 'libvulkan.so')
11 makedepends=('cmake' 'python' 'vulkan-headers' 'vulkan-icd-loader' 'wayland-protocols' 'glslang' 'spirv-tools')
12 groups=('vulkan-devel')
13 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Tools/archive/v${pkgver}.tar.gz")
14 sha256sums=('7bf5c7328a7d0114a23e95039b74f48d0cee6de594fa64714c3ed9bcf9d80b54')
17 cd "${srcdir}"/Vulkan-Tools*
19 rm -rf build{,-wayland} && mkdir build{,-wayland}
23 cd "${srcdir}"/Vulkan-Tools*/build
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
28 -DCMAKE_INSTALL_DATADIR=/usr/share \
29 -DCMAKE_SKIP_RPATH=True \
30 -DBUILD_WSI_XCB_SUPPORT=On \
31 -DBUILD_WSI_XLIB_SUPPORT=On \
32 -DBUILD_WSI_WAYLAND_SUPPORT=On \
34 -DBUILD_VULKANINFO=ON \
36 -DGLSLANG_INSTALL_DIR=/usr \
37 -DCMAKE_BUILD_TYPE=Release \
41 cd "${srcdir}"/Vulkan-Tools*/build-wayland
44 -DCMAKE_INSTALL_PREFIX=/usr \
45 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
46 -DCMAKE_INSTALL_DATADIR=/usr/share \
47 -DCMAKE_SKIP_RPATH=True \
48 -DBUILD_WSI_XCB_SUPPORT=OFF \
49 -DBUILD_WSI_XLIB_SUPPORT=OFF \
50 -DBUILD_WSI_WAYLAND_SUPPORT=On \
52 -DCUBE_WSI_SELECTION=WAYLAND \
53 -DBUILD_VULKANINFO=OFF \
55 -DGLSLANG_INSTALL_DIR=/usr \
56 -DCMAKE_BUILD_TYPE=Release \
62 cd "${srcdir}"/Vulkan-Tools*/build
64 make DESTDIR="${pkgdir}" install
66 install -m755 ../build-wayland/cube/vkcube-wayland "${pkgdir}"/usr/bin/
68 install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
69 install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/