archrelease: copy trunk to extra-x86_64
[arch-packages.git] / vulkan-lunarg-tools / trunk / PKGBUILD
blobf0f4bfe5bb4a5d4c67020ada489dbfaa8b79aee6
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgbase=vulkan-lunarg-tools
4 pkgname=(vulkan-extra-tools vulkan-extra-layers)
5 _tag=1.3.243.0
6 pkgver=1.3.243.0
7 pkgrel=1
8 arch=(x86_64)
9 url="http://lunarg.com/"
10 license=('custom')
11 depends=()
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}")
15 sha256sums=('SKIP')
17 _install() {
18   local src f dir
19   for src; do
20     f="${src#fakeinstall/}"
21     dir="${pkgdir}/${f%/*}"
22     install -m755 -d "${dir}"
23     mv -v "${src}" "${dir}/"
24   done
27 pkgver() {
28  cd "${srcdir}"/VulkanTools*
30  #echo ${_tag}+$(git rev-list --count HEAD)+$(git rev-parse --short HEAD)
31  echo ${_tag}
34 build() {
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 \
50     -DBUILD_TESTS=OFF \
51     -DBUILD_VIA=ON \
52     -DCMAKE_BUILD_TYPE=Release \
53     ..
54   make
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')
75   
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}/