# Contributor: Laurent Carlier <lordheavym@gmail.com>

pkgname=static-compat-vulkan-headers
_pkgname=Vulkan-Headers
pkgver=1.3.206
pkgrel=1
epoch=1
pkgdesc="Vulkan header files"
arch=(any)
url="https://www.khronos.org/vulkan/"
license=('APACHE')
makedepends=(static-compat-cmake git)
provides=("static-compat-vulkan-hpp=${pkgver}")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Headers/archive/v${pkgver}.tar.gz")
sha256sums=('0cd46249eabb7cd8eab6ffc1b16d30a3a14e6e1e01d3d735b22dad33ee3efcf7')

build() {
  source static-compat-environment
  cd Vulkan-Headers*

  rm -rf build ; mkdir build ; cd build
  static-compat-cmake ..
  make
}

package() {
  source static-compat-environment
  cd Vulkan-Headers*/build
  
  make DESTDIR="${pkgdir}" install
}
