void-packages/srcpkgs/MangoHud/template

27 lines
877 B
Bash

# Template file for 'MangoHud'
pkgname=MangoHud
version=0.6.5
revision=1
wrksrc="MangoHud-v${version}"
build_style=meson
configure_args="-Duse_system_vulkan=enabled -Dwith_xnvctrl=disabled
-Dwith_nvml=disabled"
hostmakedepends="Vulkan-Headers python3-Mako glslang pkg-config"
makedepends="libglvnd-devel dbus-devel vulkan-loader Vulkan-Headers"
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=e4aff5f6e58140c1a818d3127076e703141aac50fa908e01d03268b2d3b65a0b
post_patch() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
patch -Np0 -i ${FILESDIR}/musl.patch
fi
}
post_install() {
vlicense LICENSE
}