From 3c29e319dc4f957145b3bbd07f2971033e274656 Mon Sep 17 00:00:00 2001 From: Greg Beard Date: Sun, 22 Dec 2024 18:27:45 +0000 Subject: [PATCH] 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 --- srcpkgs/MangoHud-mangoapp | 1 + srcpkgs/MangoHud/template | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/MangoHud-mangoapp diff --git a/srcpkgs/MangoHud-mangoapp b/srcpkgs/MangoHud-mangoapp new file mode 120000 index 00000000000..36bf513ad59 --- /dev/null +++ b/srcpkgs/MangoHud-mangoapp @@ -0,0 +1 @@ +MangoHud \ No newline at end of file diff --git a/srcpkgs/MangoHud/template b/srcpkgs/MangoHud/template index 4ecb46ed26e..7c11c0533e7 100644 --- a/srcpkgs/MangoHud/template +++ b/srcpkgs/MangoHud/template @@ -4,10 +4,10 @@ version=0.8.0 revision=1 build_style=meson configure_args="-Dwith_xnvctrl=disabled - -Dwith_nvml=disabled -Duse_system_spdlog=enabled" + -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" + wayland-devel libxkbcommon-devel glfw-devel glew-devel" short_desc="Vulkan and OpenGL overlay for monitoring FPS, temperatures and more" maintainer="Orphaned " license="MIT" @@ -24,3 +24,12 @@ 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 + } +}