File: rename-metainfo.patch

package info (click to toggle)
ddcui 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,136 kB
  • sloc: cpp: 10,333; ansic: 6,581; xml: 42; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download
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
From: Nicolas Schodet <nico@ni.fr.eu.org>
Date: Sat, 22 Nov 2025 12:21:29 +0100
Subject: Rename metainfo to match the identifier

This fixes a warning reported by appstreamcli validate-tree:

  W: com.ddcutil.ddcui:~: metainfo-filename-cid-mismatch
     The metainfo filename does not match the component ID.

Forwarded: https://github.com/rockowitz/ddcui/pull/71
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e4157b..b2106fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -429,7 +429,7 @@ install(FILES AUTHORS CHANGELOG.md NEWS.md README.md
 # endif()
 
 install(FILES ddcui.desktop                 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
-install(FILES ddcui.appdata.xml             DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo)
+install(FILES ddcui.appdata.xml             DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo                   RENAME com.ddcutil.ddcui.metainfo.xml)
 install(FILES icons/video-display-128px.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps RENAME ddcui.png)
 install(FILES icons/video-display-64px.png  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps   RENAME ddcui.png)
 install(FILES icons/video-display-48px.png  DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/48x48/apps   RENAME ddcui.png)