# Description: Header files from the SPIR-V registry
# URL: https://www.khronos.org/registry/spir-v/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: cmake

name=spirv-headers
version=1.3.280.0
release=1
source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-$version/SPIRV-Headers-vulkan-sdk-$version.tar.gz)

build() {
	cmake -S SPIRV-Headers-vulkan-sdk-$version -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DSPIRV_HEADERS_SKIP_EXAMPLES=ON

	cmake --build build
	DESTDIR=$PKG cmake --install build
}
