1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=lib32-vulkan-validation-layers
7 pkgdesc="Vulkan Validation Layers (32-bit)"
8 url="https://www.khronos.org/vulkan/"
10 depends=('lib32-gcc-libs' 'lib32-vulkan-icd-loader' 'vulkan-headers')
11 makedepends=('cmake' 'python' 'lib32-libx11' 'lib32-libxrandr' 'lib32-wayland' 'git')
12 provides=('libVkLayer_khronos_validation.so')
13 source=("https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-${pkgver}.tar.gz")
14 sha256sums=('fd9f6c24027de177b2fb0eb6385542d62f4c21665a8d4cc7e1c118688e0836de')
17 cd "${srcdir}"/Vulkan-ValidationLayers*
19 rm -rf build && mkdir build
24 export CFLAGS+=" -m32 -ffat-lto-objects"
25 export CXXFLAGS+=" -m32 -ffat-lto-objects -Wno-error=restrict"
26 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
28 cd "${srcdir}"/Vulkan-ValidationLayers*/build
30 ../scripts/update_deps.py --config release
31 cmake -C helper.cmake \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
34 -DCMAKE_INSTALL_LIBDIR=lib32 \
35 -DCMAKE_INSTALL_DATADIR=/share \
36 -DCMAKE_SKIP_RPATH=True \
38 -DBUILD_WSI_XCB_SUPPORT=On \
39 -DBUILD_WSI_XLIB_SUPPORT=On \
40 -DBUILD_WSI_WAYLAND_SUPPORT=On \
41 -DCMAKE_BUILD_TYPE=Release \
47 cd "${srcdir}"/Vulkan-ValidationLayers*/build
49 make DESTDIR="${pkgdir}" install
51 rm -r "${pkgdir}"/usr/share/vulkan
53 install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
54 install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/