archrelease: copy trunk to testing-x86_64
[arch-packages.git] / vulkan-icd-loader / trunk / PKGBUILD
blobfc4d149a3beb11f81066b1e4a51d6ae32f77b0cb
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-icd-loader
4 pkgver=1.3.221
5 pkgrel=1
6 arch=(x86_64)
7 pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
8 url="https://www.khronos.org/vulkan/"
9 license=('custom')
10 makedepends=('cmake' 'python-lxml' 'libx11' 'libxrandr' 'wayland' 'vulkan-headers')
11 depends=(glibc)
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=('ba7042b2b14a11646ba8bd33c041ccb4f1abe5bdfa2758e301a76bf6d31d2748')
17 build() {
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 \
27     -DBUILD_TESTS=Off \
28     -DBUILD_WSI_XCB_SUPPORT=On \
29     -DBUILD_WSI_XLIB_SUPPORT=On \
30     -DBUILD_WSI_WAYLAND_SUPPORT=On \
31     -DCMAKE_BUILD_TYPE=Release \
32     ..
33   make
36 package() {
37   cd "${srcdir}"/Vulkan-Loader*/build
38   
39   make DESTDIR="${pkgdir}" install
40   
41   install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
42   install -m644 ../LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/