1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-icd-loader
7 pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
8 url="https://www.khronos.org/vulkan/"
10 makedepends=('cmake' 'python-lxml' 'libx11' 'libxrandr' 'wayland' 'vulkan-headers')
12 optdepends=('vulkan-driver: packaged vulkan driver') # vulkan-driver: vulkan-intel/vulkan-radeon/nvidia-utils/....
13 provides=('libvulkan.so')
14 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Loader/archive/v${pkgver}.tar.gz")
15 sha256sums=('93ee2885dc8ead7b654112c8c1ebfa8e10fa486e8c71c909846f855f43bdf046')
18 cd "${srcdir}"/Vulkan-Loader*
20 rm -rf build ; mkdir build ; cd build
21 cmake -DCMAKE_INSTALL_PREFIX=/usr \
22 -DVULKAN_HEADERS_INSTALL_DIR=/usr \
23 -DCMAKE_INSTALL_LIBDIR=lib \
24 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
25 -DCMAKE_INSTALL_DATADIR=/share \
26 -DCMAKE_SKIP_RPATH=True \
28 -DBUILD_WSI_XCB_SUPPORT=On \
29 -DBUILD_WSI_XLIB_SUPPORT=On \
30 -DBUILD_WSI_WAYLAND_SUPPORT=On \
31 -DCMAKE_BUILD_TYPE=Release \
37 cd "${srcdir}"/Vulkan-Loader*/build
39 make DESTDIR="${pkgdir}" install
41 install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
42 install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/