1 |
daviddavid |
2112505 |
From 87191faec11e390ab6a15dbd8e5a0e06d4c8f1cf Mon Sep 17 00:00:00 2001 |
2 |
|
|
From: Ferdinand Thiessen <rpm@fthiessen.de> |
3 |
|
|
Date: Tue, 18 May 2021 22:50:33 +0200 |
4 |
|
|
Subject: [PATCH] Add Appstream metainfo and install .desktop file with FQN. |
5 |
|
|
|
6 |
|
|
Added metainfo xml file[1] and install it (together with the .desktop |
7 |
|
|
file). |
8 |
|
|
Rename both to FQN as requested by the metainfo spec. |
9 |
|
|
|
10 |
|
|
[1] https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html |
11 |
|
|
--- |
12 |
|
|
Rebase desktop and CMakeLists by daviddavid on 20241105 |
13 |
|
|
--- |
14 |
|
|
CMakeLists.txt | 19 ++++++++++++------- |
15 |
|
|
desktop/metainfo.xml | 24 ++++++++++++++++++++++++ |
16 |
|
|
desktop/tea.desktop | 7 +++++-- |
17 |
|
|
3 files changed, 41 insertions(+), 9 deletions(-) |
18 |
|
|
create mode 100644 desktop/metainfo.xml |
19 |
|
|
|
20 |
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt |
21 |
|
|
index 5c4d078..615bc57 100644 |
22 |
|
|
--- a/CMakeLists.txt |
23 |
|
|
+++ b/CMakeLists.txt |
24 |
|
|
@@ -90,6 +90,12 @@ set(tea_DESKTOP |
25 |
|
|
./desktop/tea.desktop |
26 |
|
|
) |
27 |
|
|
|
28 |
|
|
+set(tea_METAINFO |
29 |
|
|
+ ./desktop/metainfo.xml |
30 |
|
|
+) |
31 |
|
|
+ |
32 |
|
|
+set(TEA_FQN "org.semiletov.tea") |
33 |
|
|
+ |
34 |
|
|
add_custom_target(dist |
35 |
|
|
COMMAND git archive --format=tar --prefix=${PROJECT}-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}/ HEAD | gzip >${PROJECT}-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}.tar.gz |
36 |
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} |
37 |
|
|
@@ -247,10 +253,11 @@ endif() |
38 |
|
|
target_link_libraries(tea Qt::Widgets Qt::Core) |
39 |
|
|
|
40 |
|
|
install (TARGETS tea DESTINATION bin) |
41 |
|
|
-install (FILES ${tea_ICONSVG} DESTINATION share/icons/hicolor/scalable/apps) |
42 |
|
|
-install (FILES ${tea_ICONPNG32} DESTINATION share/icons/hicolor/32x32/apps) |
43 |
|
|
-install (FILES ${tea_ICONPNG48} DESTINATION share/icons/hicolor/48x48/apps) |
44 |
|
|
-install (FILES ${tea_ICONPNG64} DESTINATION share/icons/hicolor/64x64/apps) |
45 |
|
|
+install (FILES ${tea_ICONSVG} DESTINATION share/icons/hicolor/scalable/apps) |
46 |
|
|
+install (FILES ${tea_ICONPNG32} DESTINATION share/icons/hicolor/32x32/apps) |
47 |
|
|
+install (FILES ${tea_ICONPNG48} DESTINATION share/icons/hicolor/48x48/apps) |
48 |
|
|
+install (FILES ${tea_ICONPNG64} DESTINATION share/icons/hicolor/64x64/apps) |
49 |
|
|
install (FILES ${tea_ICONPNG128} DESTINATION share/icons/hicolor/128x128/apps) |
50 |
|
|
|
51 |
|
|
-install (FILES ${tea_DESKTOP} DESTINATION share/applications) |
52 |
|
|
\ No newline at end of file |
53 |
|
|
+install (FILES ${tea_DESKTOP} RENAME ${TEA_FQN}.desktop DESTINATION share/applications) |
54 |
|
|
+install (FILES ${tea_METAINFO} RENAME ${TEA_FQN}.metainfo.xml DESTINATION share/metainfo) |
55 |
|
|
diff --git a/desktop/metainfo.xml b/desktop/metainfo.xml |
56 |
|
|
new file mode 100644 |
57 |
|
|
index 0000000..0bc821c |
58 |
|
|
--- /dev/null |
59 |
|
|
+++ b/desktop/metainfo.xml |
60 |
|
|
@@ -0,0 +1,24 @@ |
61 |
|
|
+<?xml version="1.0" encoding="UTF-8"?> |
62 |
|
|
+<!-- Copyright 2016 Sorokin Alexei <sor.alexei@meowr.ru> --> |
63 |
|
|
+<component type="desktop"> |
64 |
|
|
+ <id>org.semiletov.tea</id> |
65 |
|
|
+ <metadata_license>CC0-1.0</metadata_license> |
66 |
|
|
+ <project_license>GPL-3.0-or-later</project_license> |
67 |
|
|
+ <name>TEA</name> |
68 |
|
|
+ <summary>Powerful text editor in Qt</summary> |
69 |
|
|
+ <description> |
70 |
|
|
+ <p> |
71 |
|
|
+ TEA is a Qt-based text editor for UNIX-like systems. With an |
72 |
|
|
+ ultimate small size TEA provides you hundreds of functions. |
73 |
|
|
+ </p> |
74 |
|
|
+ </description> |
75 |
|
|
+ |
76 |
|
|
+ <launchable type="desktop-id">org.semiletov.tea.desktop</launchable> |
77 |
|
|
+ |
78 |
|
|
+ <url type="homepage">http://semiletov.org/tea</url> |
79 |
|
|
+ <developer_name>Peter Semiletov</developer_name> |
80 |
|
|
+ |
81 |
|
|
+ <provides> |
82 |
|
|
+ <binary>tea</binary> |
83 |
|
|
+ </provides> |
84 |
|
|
+</component> |
85 |
|
|
diff --git a/desktop/tea.desktop b/desktop/tea.desktop |
86 |
|
|
index 1dafaed..b806505 100644 |
87 |
|
|
--- a/desktop/tea.desktop |
88 |
|
|
+++ b/desktop/tea.desktop |
89 |
|
|
@@ -4,12 +4,15 @@ Terminal=false |
90 |
|
|
Type=Application |
91 |
|
|
Icon=tea |
92 |
|
|
Exec=tea %F |
93 |
|
|
-Categories=Utility;TextEditor; |
94 |
|
|
+Categories=Qt;Utility;TextEditor; |
95 |
|
|
StartupNotify=false |
96 |
|
|
MimeType=text/plain;application/epub+zip;application/fb2;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.oasis.opendocument.text;application/x-tex; |
97 |
|
|
NoDisplay=false |
98 |
|
|
-Version=1.1 |
99 |
|
|
Keywords=text editor;text;editor; |
100 |
|
|
Keywords[de]=Texteditor;Text;Editor; |
101 |
|
|
Comment=Text editor with hundreds of functions |
102 |
|
|
Comment[de]=Texteditor mit hunderten Funktionen |
103 |
|
|
+Comment[eo]=Funkcia tekstoredaktilo per Qt |
104 |
|
|
+Comment[fr]=Éditeur de texte avec des centaines de fonctions |
105 |
|
|
+Comment[ru]=Функциональный текстовый редактор на Qt |
106 |
|
|
+Comment[uk]=Функціональний текстовий редактор на Qt |