upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-vulkan-validation-layers / trunk / PKGBUILD
blob1b5c2241fcd9ea8ade6bcb9d7e78dac7fd31bfaf
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=lib32-vulkan-validation-layers
4 pkgver=1.3.243.0
5 pkgrel=1
6 arch=(x86_64)
7 pkgdesc="Vulkan Validation Layers (32-bit)"
8 url="https://www.khronos.org/vulkan/"
9 license=('custom')
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')
16 prepare() {
17   cd "${srcdir}"/Vulkan-ValidationLayers*
19   rm -rf build && mkdir build
22 build() {
23   export ASFLAGS=--32
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 \
37     -DBUILD_TESTS=Off \
38     -DBUILD_WSI_XCB_SUPPORT=On \
39     -DBUILD_WSI_XLIB_SUPPORT=On \
40     -DBUILD_WSI_WAYLAND_SUPPORT=On \
41     -DCMAKE_BUILD_TYPE=Release \
42     ..
43   make
46 package() {
47   cd "${srcdir}"/Vulkan-ValidationLayers*/build
48   
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}/