db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / vulkan-tools / repos / extra-x86_64 / PKGBUILD
blob125e6687da8281d2bcdb4426f497f640bc5c876e
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-tools
4 pkgver=1.3.245
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' 'wayland-protocols' '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=('7bf5c7328a7d0114a23e95039b74f48d0cee6de594fa64714c3ed9bcf9d80b54')
16 prepare() {
17   cd "${srcdir}"/Vulkan-Tools*
19   rm -rf build{,-wayland} && mkdir build{,-wayland}
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
41   cd "${srcdir}"/Vulkan-Tools*/build-wayland
43   cmake \
44     -DCMAKE_INSTALL_PREFIX=/usr \
45     -DCMAKE_INSTALL_SYSCONFDIR=/etc \
46     -DCMAKE_INSTALL_DATADIR=/usr/share \
47     -DCMAKE_SKIP_RPATH=True \
48     -DBUILD_WSI_XCB_SUPPORT=OFF \
49     -DBUILD_WSI_XLIB_SUPPORT=OFF \
50     -DBUILD_WSI_WAYLAND_SUPPORT=On \
51     -DBUILD_CUBE=ON \
52     -DCUBE_WSI_SELECTION=WAYLAND \
53     -DBUILD_VULKANINFO=OFF \
54     -DBUILD_ICD=OFF \
55     -DGLSLANG_INSTALL_DIR=/usr \
56     -DCMAKE_BUILD_TYPE=Release \
57     ..
58   make
61 package() {
62   cd "${srcdir}"/Vulkan-Tools*/build
63   
64   make DESTDIR="${pkgdir}" install
66   install -m755 ../build-wayland/cube/vkcube-wayland "${pkgdir}"/usr/bin/
68   install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
69   install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/