Skip to content

Commit

Permalink
updpatch: mangohud 0.7.2-2
Browse files Browse the repository at this point in the history
Backport flightlessmango/MangoHud@d0894ff as requested.
  • Loading branch information
hack3ric authored and felixonmars committed Oct 11, 2024
1 parent 039bf9e commit fd4eb0f
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions mangohud/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
--- PKGBUILD
+++ PKGBUILD
@@ -12,10 +12,9 @@ pkgdesc="A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load a
@@ -11,14 +11,15 @@ pkgdesc="A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load a
arch=('x86_64')
url="https://github.com/flightlessmango/MangoHud"
license=('MIT')
-makedepends=('appstream' 'cmocka' 'git' 'glfw-x11' 'glslang' 'libxnvctrl' 'meson' 'nlohmann-json' 'python-mako')
+makedepends=('appstream' 'cmocka' 'git' 'glfw-x11' 'glslang' 'meson' 'nlohmann-json' 'python-mako')
depends=('dbus' 'fmt' 'gcc-libs' 'glew' 'hicolor-icon-theme' 'libglvnd' 'libx11' 'python' 'python-matplotlib' 'python-numpy' 'vulkan-icd-loader')
-makedepends=('appstream' 'cmocka' 'git' 'glslang' 'libxnvctrl' 'libxrandr' 'meson' 'nlohmann-json' 'python-mako' 'vulkan-headers')
+makedepends=('appstream' 'cmocka' 'git' 'glslang' 'libxrandr' 'meson' 'nlohmann-json' 'python-mako' 'vulkan-headers')
depends=('dbus' 'fmt' 'gcc-libs' 'glew' 'glfw' 'hicolor-icon-theme' 'libglvnd' 'libx11' 'libxkbcommon' 'python' 'python-matplotlib' 'python-numpy' 'vulkan-icd-loader' 'wayland')
-optdepends=('libxnvctrl: NVIDIA GPU stats by XNVCtrl'
- 'glfw-x11: Required for MangoApp'
+optdepends=('glfw-x11: Required for MangoApp'
'gamescope: Use MangoApp as an overlay within gamescope')
- 'gamescope: Use MangoApp as an overlay within gamescope')
+optdepends=('gamescope: Use MangoApp as an overlay within gamescope')
replaces=("$pkgname-common" "$pkgname-common-wayland" "$pkgname-common-x11" "mangoapp" "$pkgname-x11" "$pkgname-wayland")
conflicts=("$pkgname-common" "$pkgname-common-wayland" "$pkgname-common-x11" "mangoapp" "$pkgname-x11" "$pkgname-wayland")
@@ -34,7 +33,8 @@ build() {
arch-meson "$_pkgname-v$_tarpkgver" build \
-source=("$pkgname-$pkgver.tar.xz::https://github.com/flightlessmango/MangoHud/releases/download/v$pkgver/$_pkgname-v$_pkgver-Source.tar.xz")
-b2sums=('774bdc33a7d58fadf1323da16c81f22eea39c1f101a6753be3cbf888e18b45fc1060e39c3f5191f5a3e71aa8ad11cde3f0c86eed50d7164afa518c282701996d')
+source=("$pkgname-$pkgver.tar.xz::https://github.com/flightlessmango/MangoHud/releases/download/v$pkgver/$_pkgname-v$_pkgver-Source.tar.xz"
+ "riscv-d_ptr-relative.patch::https://github.com/flightlessmango/MangoHud/commit/d0894fff38e033f5f0074efa975cfbe0069035b1.diff")
+b2sums=('774bdc33a7d58fadf1323da16c81f22eea39c1f101a6753be3cbf888e18b45fc1060e39c3f5191f5a3e71aa8ad11cde3f0c86eed50d7164afa518c282701996d'
+ '5da78ac401a6143aacd30aff45d4174a960934a2750b44577df20eca40b838e2bcc003a309bd14cd3bd621b5d17faddc1027147d2a69535067adeba82da7ed37')

prepare() {
cd "$_pkgname-v$pkgver"
@@ -26,13 +27,15 @@ prepare() {
# Use system cmocka instead of subproject
sed -i "s/ cmocka = subproject('cmocka')//g" meson.build
sed -i "s/cmocka_dep = cmocka.get_variable('cmocka_dep')/cmocka_dep = dependency('cmocka')/g" meson.build
+ patch -Np1 -i ../riscv-d_ptr-relative.patch
}

build() {
arch-meson "$_pkgname-v$pkgver" build \
-Dmangoapp=true \
-Dmangohudctl=true \
- -Dmangoapp_layer=true
+ -Dmangoapp_layer=true \
+ -Dwith_xnvctrl=disabled
+ -Dwith_xnvctrl=disabled

meson compile -C build
}

0 comments on commit fd4eb0f

Please sign in to comment.