#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=vulkan-headers
_pkgname=Vulkan-Headers
pkgver=1.3.240
pkgrel=01
epoch=1
pkgdesc="Vulkan header files"
arch=(any)
url="https://www.khronos.org/vulkan/"
makedepends=(cmake git)
provides=("vulkan-hpp=${pkgver}")
groups=(vulkan-devel)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/KhronosGroup/Vulkan-Headers/archive/v${pkgver}.tar.gz")

build() {
  cd Vulkan-Headers*

  rm -rf build ; mkdir build ; cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make
}

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

#---- license gpg-key sha256sums ----

license=('APACHE')

sha256sums=(98734513f4847254ef5bdd31a9c897f64938dac0733b9aea9e4b3fd339d82281) # vulkan-headers-1.3.240.tar.gz
 
##  69acc40a04bc95b333c25e8e5d943e40819aa32796cb00cb66bb2894a221dafd  vulkan-headers-1:1.3.240-01-any.pkg.tar.xz

