# Description: Vulkan validation layers, 32bit # URL: https://www.khronos.org/vulkan/ # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu # Depends on: spirv-tools-32 vulkan-loader-32 vulkan-validation-layers name=vulkan-validation-layers-32 version=1.1.126.0 release=1 source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-sdk-$version.tar.gz fix_shared.patch) build() { cd Vulkan-ValidationLayers-sdk-$version patch -p1 -i $SRC/fix_shared.patch mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib32 \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=True \ -DBUILD_TESTS=False \ -DGLSLANG_INSTALL_DIR=/usr \ -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/vulkan/ \ -DBUILD_LAYER_SUPPORT_FILES=ON \ -DBUILD_WSI_XCB_SUPPORT=ON \ -DBUILD_WSI_XLIB_SUPPORT=ON \ -DBUILD_WSI_WAYLAND_SUPPORT=OFF \ -GNinja ninja -j ${JOBS:-1} DESTDIR=$PKG ninja install rm -r $PKG/usr/{include,share} }