# vkd3d-proton - Direct3D 12 over Vulkan
# 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=vkd3d-proton
version=2.14.1
release=1
desc="Direct3D 12 over Vulkan"
url="https://github.com/HansKristian-Work/vkd3d-proton"
license="LGPL-2.1-or-later"
depend="vulkan-loader wine"
makedepend="meson ninja"
source="https://github.com/HansKristian-Work/vkd3d-proton/releases/download/v2.14.1/vkd3d-proton-2.14.1.tar.zst"
sha256="SKIP"

build() {
	cd "vkd3d-proton-2.14.1"
	meson setup build \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nodownload \
		-Db_lto=true
	ninja -C build -j"$JOBS"
}

package() {
	cd "vkd3d-proton-2.14.1"
	DESTDIR="$pkgdir" ninja -C build install
}
