python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / vulkan-loader / template
blob8311e4bdefe1081b00f54eb1ea5c2fc304cde427
1 # Template file for 'vulkan-loader'
2 pkgname=vulkan-loader
3 _pkgname=Vulkan-LoaderAndValidationLayers
4 version=1.1.70.0
5 revision=1
6 build_style=cmake
7 configure_args="-DBUILD_TESTS=Off"
8 wrksrc=${_pkgname}-sdk-${version}
9 hostmakedepends="git python3 bison pkg-config"
10 makedepends="libxcb-devel libxkbcommon-devel libwayland-egl wayland-devel
11  libXrandr-devel"
12 short_desc="Vulkan Installable Client Driver (ICD) loader"
13 maintainer="Arvin Ignaci <arvin.ignaci@gmail.com>"
14 license="Apache-2.0"
15 homepage="https://www.khronos.org/vulkan/"
16 distfiles="https://github.com/KhronosGroup/${_pkgname}/archive/sdk-${version}.tar.gz"
17 checksum=bd30ffe25a0723775ea8427d65e96bbad6f5130674ac6577ec639b54ce811397
19 nocross="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/1962"
20 nopie=yes
22 pre_configure() {
23         ./update_external_sources.sh
26 do_install() {
27         for file in build/loader/libvulkan.*; do
28                 vinstall ${file} 755 /usr/lib
29         done
31         vbin build/demos/vulkaninfo
33         vinstall include/vulkan/vk_icd.h 644 /usr/include/vulkan
34         vlicense LICENSE.txt
37 vulkan-validation-layers_package() {
38         short_desc="Vulkan validation layers"
39         depends="${sourcepkg}>=${version}_${revision}"
40         pkg_install() {
41                 cd build
43                 for file in layers/*.so; do
44                         vinstall ${file} 755 /usr/lib
45                 done
47                 for file in layers/*.json; do
48                         vinstall ${file} 644 /etc/vulkan/explicit_layer.d
49                 done
50         }