Greg Beard 3c29e319dc MangoHud: add mangoapp sub-package
`mangoapp` is required if you wish to use MangoHud within a `gamescope`
session. From the MangoHud README...

> To enable mangohud with gamescope you need to install mangoapp.
> `gamescope --mangoapp %command%`
>
> Using normal mangohud with gamescope is not supported.

closes #53633
2025-02-22 21:34:14 +01:00

36 lines
1.2 KiB
Bash

# Template file for 'MangoHud'
pkgname=MangoHud
version=0.8.0
revision=1
build_style=meson
configure_args="-Dwith_xnvctrl=disabled
-Dwith_nvml=disabled -Duse_system_spdlog=enabled -Dmangoapp=true"
hostmakedepends="Vulkan-Headers python3-Mako glslang pkg-config"
makedepends="libglvnd-devel dbus-devel vulkan-loader spdlog json-c++
wayland-devel libxkbcommon-devel glfw-devel glew-devel"
short_desc="Vulkan and OpenGL overlay for monitoring FPS, temperatures and more"
maintainer="Orphaned <orphan@voidlinux.org>"
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=9627587e05e0a570935d2177bd5f704ef6b72d66f7f773a48d8d86ec0e8aa673
python_version=3
lib32files="/usr/share/vulkan/implicit_layer.d/MangoHud.x86.json"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Ddynamic_string_tokens=false"
fi
post_install() {
vlicense LICENSE
}
MangoHud-mangoapp_package() {
short_desc="Transparent background application with a built in mangohud"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/mangoapp
vmove usr/share/man/man1/mangoapp.1
}
}