db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / vulkan-validation-layers / trunk / PKGBUILD
blob9217eef3a78fd0b9e41e57ccc842a5a3a93d31b7
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-validation-layers
4 pkgver=1.3.243.0
5 pkgrel=1
6 pkgdesc="Vulkan Validation Layers"
7 arch=(x86_64)
8 url="https://www.khronos.org/vulkan/"
9 license=('custom')
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')
14 options=(!strip)
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')
19 #pkgver() {
20 #  cd "${srcdir}/Vulkan-ValidationLayers"
22 #  echo 1.1.97.0+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
25 prepare() {
26   cd "${srcdir}"/Vulkan-ValidationLayers*
28   rm -rf build && mkdir build
31 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 \
43     -DBUILD_TESTS=Off \
44     -DBUILD_WSI_XCB_SUPPORT=On \
45     -DBUILD_WSI_XLIB_SUPPORT=On \
46     -DBUILD_WSI_WAYLAND_SUPPORT=On \
47     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
48     ..
49   make
52 package() {
53   cd "${srcdir}"/Vulkan-ValidationLayers*/build
54   
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}/