1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-validation-layers
6 pkgdesc="Vulkan Validation Layers"
8 url="https://www.khronos.org/vulkan/"
10 groups=('vulkan-devel')
11 depends=('gcc-libs' 'vulkan-icd-loader' 'vulkan-headers' 'libx11')
12 makedepends=('cmake' 'python-lxml' 'libxrandr' 'wayland' 'git')
13 provides=('libVkLayer_khronos_validation.so')
15 source=("https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-${pkgver}.tar.gz")
16 #source=("git+https://github.com/KhronosGroup/Vulkan-ValidationLayers.git#commit=35d091dad71304dab79758fdae4bda12f692d735")
17 sha256sums=('fd9f6c24027de177b2fb0eb6385542d62f4c21665a8d4cc7e1c118688e0836de')
20 # cd "${srcdir}/Vulkan-ValidationLayers"
22 # echo 1.1.97.0+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
26 cd "${srcdir}"/Vulkan-ValidationLayers*
28 rm -rf build && mkdir build
32 cd "${srcdir}"/Vulkan-ValidationLayers*/build
34 ../scripts/update_deps.py
35 cmake -C helper.cmake \
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DCMAKE_INSTALL_LIBDIR=lib \
38 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
39 -DCMAKE_INSTALL_DATADIR=/share \
40 -DCMAKE_INSTALL_INCLUDEDIR="/usr/include/" \
41 -DBUILD_LAYER_SUPPORT_FILES=ON \
42 -DCMAKE_SKIP_RPATH=True \
44 -DBUILD_WSI_XCB_SUPPORT=On \
45 -DBUILD_WSI_XLIB_SUPPORT=On \
46 -DBUILD_WSI_WAYLAND_SUPPORT=On \
47 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
53 cd "${srcdir}"/Vulkan-ValidationLayers*/build
55 make DESTDIR="${pkgdir}" install
57 install -dm755 "${pkgdir}"/usr/share/{licenses/,doc/}${pkgname}/
58 cp -r ../docs/* "${pkgdir}"/usr/share/doc/${pkgname}/
59 install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/