archrelease: copy trunk to extra-x86_64
[arch-packages.git] / vulkan-tools / repos / extra-x86_64 / PKGBUILD
blobe6c6475be289280beb561660f5260fcfde58ef08
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-tools
4 pkgver=1.2.199
5 pkgrel=1
6 arch=(x86_64)
7 url="https://www.khronos.org/vulkan/"
8 pkgdesc="Vulkan Utilities and Tools"
9 license=('custom')
10 depends=('libx11' 'wayland' 'libvulkan.so')
11 makedepends=('cmake' 'python' 'vulkan-headers' 'vulkan-icd-loader' 'glslang' 'spirv-tools')
12 groups=('vulkan-devel')
13 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Tools/archive/v${pkgver}.tar.gz")
14 sha256sums=('cda034e5990aa92848bfd98045ae77000a789e37b2080a97d4cd7fbb3a089580')
16 prepare() {
17   cd "${srcdir}"/Vulkan-Tools*
19   rm -rf build && mkdir build
22 build() {
23   cd "${srcdir}"/Vulkan-Tools*/build
25   cmake \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
28     -DCMAKE_INSTALL_DATADIR=/usr/share \
29     -DCMAKE_SKIP_RPATH=True \
30     -DBUILD_WSI_XCB_SUPPORT=On \
31     -DBUILD_WSI_XLIB_SUPPORT=On \
32     -DBUILD_WSI_WAYLAND_SUPPORT=On \
33     -DBUILD_CUBE=ON \
34     -DBUILD_VULKANINFO=ON \
35     -DBUILD_ICD=OFF \
36     -DGLSLANG_INSTALL_DIR=/usr \
37     -DCMAKE_BUILD_TYPE=Release \
38     ..
39   make
42 package() {
43   cd "${srcdir}"/Vulkan-Tools*/build
44   
45   make DESTDIR="${pkgdir}" install
47   install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
48   install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/