# Template file for 'MangoHud'
pkgname=MangoHud
version=0.6.8
revision=1
build_style=meson
configure_args="-Duse_system_vulkan=enabled -Dwith_xnvctrl=disabled
 -Dwith_nvml=disabled -Duse_system_spdlog=enabled"
hostmakedepends="Vulkan-Headers python3-Mako glslang pkg-config"
makedepends="libglvnd-devel dbus-devel vulkan-loader Vulkan-Headers
 spdlog"
short_desc="Vulkan and OpenGL overlay for monitoring FPS, temperatures and more"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://github.com/flightlessmango/MangoHud"
distfiles="https://github.com/flightlessmango/MangoHud/releases/download/v${version}/MangoHud-v${version}-Source-DFSG.tar.xz"
checksum=0c4358428e6ae48d13282dec4bf4e78015b4f5e46d080a7e7588786cef63c09f

post_patch() {
	if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
		patch -Np0 -i ${FILESDIR}/musl.patch
	fi
}

post_install() {
	vlicense LICENSE
}
