This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.valvesoftware.Steam.Utility.MangoHud.yml
115 lines (108 loc) · 3.96 KB
/
com.valvesoftware.Steam.Utility.MangoHud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
id: com.valvesoftware.Steam.Utility.MangoHud
default-branch: beta
sdk: org.freedesktop.Sdk//20.08
runtime: com.valvesoftware.Steam
runtime-version: beta
build-extension: true
appstream-compose: false
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
- org.freedesktop.Sdk.Extension.toolchain-i386
build-options:
prefix: /app/utils/MangoHud
prepend-path: /app/utils/MangoHud/bin
prepend-pkg-config-path: /app/utils/MangoHud/lib/pkgconfig
env:
PYTHONPATH: /app/utils/MangoHud/lib/python3.8/site-packages
C_INCLUDE_PATH: /app/utils/MangoHud/include
CPLUS_INCLUDE_PATH: /app/utils/MangoHud/include
strip: true
cleanup:
- /include
modules:
- name: MangoHud
build-options:
libdir: lib/x86_64-linux-gnu
buildsystem: meson
config-opts: &mangohud-config-opts
- -Duse_system_vulkan=enabled
- -Dwith_xnvctrl=enabled
- -Dappend_libdir_mangohud=false
sources: &mangohud-sources
- type: archive
url: https://github.com/flightlessmango/MangoHud/releases/download/v0.6.5/MangoHud-v0.6.5-Source.tar.xz
sha256: aa3f65ece217842c3be1b755c0f3a09b2096f0af475715d3619182a13c6f4fbf
x-checker-data:
type: json
url: https://api.github.com/repos/flightlessmango/MangoHud/releases
url-query: |
map(select(.tag_name | startswith("v"))) | first |
.assets | map((select(.name | endswith("Source.tar.xz")))) | first | .browser_download_url
version-query: |
map(select(.tag_name | startswith("v"))) | first |
.tag_name | sub("^[vV]"; "")
modules:
- name: vulkan-registry
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/vulkan
- ln -sr /usr/share/vulkan/registry ${FLATPAK_DEST}/share/vulkan/registry
cleanup:
- '*'
- python3-mako.json
- name: libNVCtrl
build-options:
env:
LIB: lib/x86_64-linux-gnu
no-autogen: true
no-make-install: true
build-commands: &libNVCtrl-build-commands
- mkdir -p ${FLATPAK_DEST}/$LIB
- cp -a libXNVCtrl.so* ${FLATPAK_DEST}/$LIB/
- install -D *.h -t ${FLATPAK_DEST}/include/NVCtrl
subdir: src/libXNVCtrl
sources: &libNVCtrl-sources
- type: archive
archive-type: tar
url: https://api.github.com/repos/NVIDIA/nvidia-settings/tarball/refs/tags/470.63.01
sha256: 0ede63515851d85ac0d1ed5f00e355f539968e6d1fd226120a27b2c66c3575de
- type: patch
path: patches/libxnvctrl_so_0.patch
x-checker-data:
type: json
url: https://api.github.com/repos/NVIDIA/nvidia-settings/tags
url-query: .[0].tarball_url
version-query: .[0].name
- name: MangoHud-32bit
build-options:
prepend-pkg-config-path: /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig
append-path: /usr/lib/sdk/toolchain-i386/bin
env:
CC: ccache i686-unknown-linux-gnu-gcc
CXX: ccache i686-unknown-linux-gnu-g++
libdir: lib/i386-linux-gnu
buildsystem: meson
config-opts: *mangohud-config-opts
sources: *mangohud-sources
modules:
- name: libNVCtrl-32bit
build-options:
append-path: /usr/lib/sdk/toolchain-i386/bin
env:
CC: ccache i686-unknown-linux-gnu-gcc
CXX: ccache i686-unknown-linux-gnu-g++
LIB: lib/i386-linux-gnu
no-autogen: true
no-make-install: true
build-commands: *libNVCtrl-build-commands
subdir: src/libXNVCtrl
sources: *libNVCtrl-sources
- name: metadata
buildsystem: simple
build-commands:
- install -Dm644 -t ${FLATPAK_DEST}/share/metainfo ${FLATPAK_ID}.metainfo.xml
- appstream-compose --basename=${FLATPAK_ID} --prefix=${FLATPAK_DEST} --origin=flatpak
${FLATPAK_ID}
sources:
- type: file
path: com.valvesoftware.Steam.Utility.MangoHud.metainfo.xml