archrelease: copy trunk to extra-x86_64
[arch-packages.git] / vulkan-icd-loader / trunk / PKGBUILD
blobe135495894ce3ffc23895baeb170a97efc80fee2
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=vulkan-icd-loader
4 pkgver=1.3.245
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=('93ee2885dc8ead7b654112c8c1ebfa8e10fa486e8c71c909846f855f43bdf046')
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}/