# vulkan-loader - Vulkan ICD loader
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=vulkan-loader
version=1.4.330
release=1
desc="Vulkan ICD loader"
url="https://github.com/KhronosGroup/Vulkan-Loader"
license="Apache-2.0"
depend="glibc wayland libx11"
makedepend="cmake ninja vulkan-headers"
source="https://github.com/KhronosGroup/Vulkan-Loader/archive/refs/tags/v1.4.330.tar.gz"
sha256="SKIP"

build() {
	cmake -S "vulkan-loader-1.4.330" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
