1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgbase=vulkan-lunarg-tools
4 pkgname=(vulkan-extra-tools vulkan-extra-layers)
9 url="http://lunarg.com/"
12 makedepends=(git cmake python libx11 libxrandr wayland qt5-svg qt5-webengine)
13 #source=("https://github.com/LunarG/VulkanTools/archive/v${pkgver}.tar.gz")
14 source=("VulkanTools-sdk::git+https://github.com/LunarG/VulkanTools.git#tag=sdk-${_tag}")
20 f="${src#fakeinstall/}"
21 dir="${pkgdir}/${f%/*}"
22 install -m755 -d "${dir}"
23 mv -v "${src}" "${dir}/"
28 cd "${srcdir}"/VulkanTools*
30 #echo ${_tag}+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
35 cd "${srcdir}"/VulkanTools*
37 ./update_external_sources.sh
38 rm -rf build ; mkdir build ; cd build
39 ../scripts/update_deps.py
41 cmake -C helper.cmake \
42 -DCMAKE_INSTALL_PREFIX=/usr \
43 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
44 -DCMAKE_INSTALL_DATADIR=/usr/share \
45 -DCMAKE_INSTALL_LIBDIR=lib \
46 -DCMAKE_SKIP_RPATH=True \
47 -DBUILD_WSI_XCB_SUPPORT=On \
48 -DBUILD_WSI_XLIB_SUPPORT=On \
49 -DBUILD_WSI_WAYLAND_SUPPORT=On \
52 -DCMAKE_BUILD_TYPE=Release \
55 make DESTDIR="${srcdir}/fakeinstall" install
58 package_vulkan-extra-tools() {
59 pkgdesc="Vulkan lunarg tools"
60 depends=(vulkan-validation-layers qt5-svg qt5-webengine)
61 conflicts=('vulkan-trace<1.2.148.1')
62 groups=('vulkan-devel')
64 _install fakeinstall/usr/bin/*
66 install -dm755 ${pkgdir}/usr/share/{doc,licenses}/${pkgname}
67 install -m644 VulkanTools*/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
68 install -m644 VulkanTools*/vkconfig/*.md "${pkgdir}"/usr/share/doc/${pkgname}/
71 package_vulkan-extra-layers() {
72 pkgdesc="Extra layers for Vulkan development"
73 depends=(vulkan-validation-layers)
74 groups=('vulkan-devel')
76 _install fakeinstall/usr/lib/libVkLayer_api_dump.so
77 _install fakeinstall/usr/lib/libVkLayer_monitor.so
78 _install fakeinstall/usr/lib/libVkLayer_screenshot.so
80 _install fakeinstall/etc/vulkan/explicit_layer.d/VkLayer_api_dump.json
81 _install fakeinstall/etc/vulkan/explicit_layer.d/VkLayer_monitor.json
82 _install fakeinstall/etc/vulkan/explicit_layer.d/VkLayer_screenshot.json
84 install -dm755 ${pkgdir}/usr/share/{doc,licenses}/${pkgname}
85 install -m644 VulkanTools*/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
86 install -m644 VulkanTools*/layersvt/README.md "${pkgdir}"/usr/share/doc/${pkgname}/