dev-util/rust-analyzer: bump version to 20220704
[gentoo-zh.git] / app-admin / zenmonitor / files / zenmonitor.patch
blob58846e9bf6d5d11f042a73b092e90b992de6b9ec
1 diff --color -ur zenmonitor-1.4.2/data/org.pkexec.zenmonitor.policy.in zenmonitor-1.4.2-fix/data/org.pkexec.zenmonitor.policy.in
2 --- zenmonitor-1.4.2/data/org.pkexec.zenmonitor.policy.in 2020-06-15 05:29:01.000000000 +0800
3 +++ zenmonitor-1.4.2-fix/data/org.pkexec.zenmonitor.policy.in 2021-12-14 12:14:34.197436633 +0800
4 @@ -11,7 +11,7 @@
5 <allow_inactive>auth_admin</allow_inactive>
6 <allow_active>auth_admin</allow_active>
7 </defaults>
8 - <annotate key="org.freedesktop.policykit.exec.path">@APP_EXEC@</annotate>
9 + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/zenmonitor</annotate>
10 <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
11 </action>
13 diff --color -ur zenmonitor-1.4.2/data/zenmonitor.desktop.in zenmonitor-1.4.2-fix/data/zenmonitor.desktop.in
14 --- zenmonitor-1.4.2/data/zenmonitor.desktop.in 2020-06-15 05:29:01.000000000 +0800
15 +++ zenmonitor-1.4.2-fix/data/zenmonitor.desktop.in 2021-12-14 12:16:08.932245655 +0800
16 @@ -1,8 +1,9 @@
17 [Desktop Entry]
18 Name=Zenmonitor
19 Comment=Monitoring software for AMD Zen-based CPUs
20 -Exec=@APP_EXEC@
21 +Exec=zenmonitor
22 Type=Application
23 Categories=GTK;System;
24 Terminal=false
25 Keywords=CPU;AMD;zen;system;core;speed;clock;temperature;voltage;
26 +Icon=utilities-system-monitor
27 diff --color -ur zenmonitor-1.4.2/data/zenmonitor-root.desktop.in zenmonitor-1.4.2-fix/data/zenmonitor-root.desktop.in
28 --- zenmonitor-1.4.2/data/zenmonitor-root.desktop.in 2020-06-15 05:29:01.000000000 +0800
29 +++ zenmonitor-1.4.2-fix/data/zenmonitor-root.desktop.in 2021-12-14 12:16:02.778323020 +0800
30 @@ -1,8 +1,9 @@
31 [Desktop Entry]
32 Name=Zenmonitor (root)
33 Comment=Monitoring software for AMD Zen-based CPUs
34 -Exec=pkexec @APP_EXEC@
35 +Exec=pkexec zenmonitor
36 Type=Application
37 Categories=GTK;System;
38 Terminal=false
39 Keywords=CPU;AMD;zen;system;core;speed;clock;temperature;voltage;
40 +Icon=utilities-system-monitor
41 diff --color -ur zenmonitor-1.4.2/makefile zenmonitor-1.4.2-fix/makefile
42 --- zenmonitor-1.4.2/makefile 2020-06-15 05:29:01.000000000 +0800
43 +++ zenmonitor-1.4.2-fix/makefile 2021-12-14 12:11:35.143687643 +0800
44 @@ -3,7 +3,7 @@
45 endif
47 build:
48 - cc -Isrc/include `pkg-config --cflags gtk+-3.0` src/*.c src/ss/*.c -o zenmonitor `pkg-config --libs gtk+-3.0` -lm -no-pie -Wall
49 + cc -Isrc/include `pkg-config --cflags gtk+-3.0` src/*.c src/ss/*.c -o zenmonitor `pkg-config --libs gtk+-3.0` -lm -no-pie -Wall -fcommon ${CFLAGS} ${LDFLAGS}
51 install:
52 mkdir -p $(DESTDIR)$(PREFIX)/bin