summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-11-16 15:48:36 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-11-16 15:49:39 (GMT)
commit0af1101cce78adc99053a86894c50b4954417896 (patch)
tree19a6d9bb55b476eba995edbf7e80fab05d385645
parent83bd7e01bdf1191311b8344875c983f80869e44d (diff)
FEATURE: Add namespace to desktop and appdata files for KF5 templates
REVIEW:129360
-rw-r--r--src/templates/C++/kde-frameworks5-simple/src/CMakeLists.txt3
-rw-r--r--src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.appdata.xml26
-rw-r--r--src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.desktop (renamed from src/templates/C++/kde-frameworks5-simple/src/%{APPNAMELC}.desktop)0
-rw-r--r--src/templates/C++/kde-frameworks5/src/CMakeLists.txt3
-rw-r--r--src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.appdata.xml26
-rw-r--r--src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.desktop (renamed from src/templates/C++/kde-frameworks5/src/%{APPNAMELC}.desktop)1
6 files changed, 56 insertions, 3 deletions
diff --git a/src/templates/C++/kde-frameworks5-simple/src/CMakeLists.txt b/src/templates/C++/kde-frameworks5-simple/src/CMakeLists.txt
index 0b62376..7879f64 100644
--- a/src/templates/C++/kde-frameworks5-simple/src/CMakeLists.txt
+++ b/src/templates/C++/kde-frameworks5-simple/src/CMakeLists.txt
@@ -14,4 +14,5 @@ target_link_libraries( %{APPNAMELC}
)
install( TARGETS %{APPNAMELC} ${INSTALL_TARGETS_DEFAULT_ARGS} )
-install( PROGRAMS %{APPNAMELC}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( PROGRAMS org.example.%{APPNAMELC}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES org.example.%{APPNAMELC}.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )
diff --git a/src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.appdata.xml b/src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.appdata.xml
new file mode 100644
index 0000000..1eea0ad
--- /dev/null
+++ b/src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.appdata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component type="desktop-application">
+ <id>org.example.%{APPNAMELC}.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-metadata_license </project_license>
+ <name>%{APPNAMELC}</name>
+ <summary> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-summary </summary>
+ <description>
+ <p> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description </p>
+ </description>
+ <url type="homepage">https://www.example.org</url>
+ <url type="bugtracker">https://bugs.example.org</url>
+ <url type="donation">https://www.example.org/community/donations</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>
+ https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-screenshots
+ Central hosting is still being sorted out, poke sitter@kde.org for more info.
+ </image>
+ </screenshot>
+ </screenshots>
+ <provides>
+ <binary>%{APPNAMELC}</binary>
+ </provides>
+ <project_group>KDE</project_group>
+</component>
diff --git a/src/templates/C++/kde-frameworks5-simple/src/%{APPNAMELC}.desktop b/src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.desktop
index be60049..be60049 100644
--- a/src/templates/C++/kde-frameworks5-simple/src/%{APPNAMELC}.desktop
+++ b/src/templates/C++/kde-frameworks5-simple/src/org.example.%{APPNAMELC}.desktop
diff --git a/src/templates/C++/kde-frameworks5/src/CMakeLists.txt b/src/templates/C++/kde-frameworks5/src/CMakeLists.txt
index 1f108b1..fa78afe 100644
--- a/src/templates/C++/kde-frameworks5/src/CMakeLists.txt
+++ b/src/templates/C++/kde-frameworks5/src/CMakeLists.txt
@@ -18,5 +18,6 @@ target_link_libraries(%{APPNAMELC}
)
install(TARGETS %{APPNAMELC} ${INSTALL_TARGETS_DEFAULT_ARGS})
-install(PROGRAMS %{APPNAMELC}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+install(PROGRAMS org.example.%{APPNAMELC}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+install(FILES org.example.%{APPNAMELC}.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES %{APPNAMELC}ui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/%{APPNAMELC})
diff --git a/src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.appdata.xml b/src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.appdata.xml
new file mode 100644
index 0000000..1eea0ad
--- /dev/null
+++ b/src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.appdata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component type="desktop-application">
+ <id>org.example.%{APPNAMELC}.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-metadata_license </project_license>
+ <name>%{APPNAMELC}</name>
+ <summary> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-summary </summary>
+ <description>
+ <p> https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-description </p>
+ </description>
+ <url type="homepage">https://www.example.org</url>
+ <url type="bugtracker">https://bugs.example.org</url>
+ <url type="donation">https://www.example.org/community/donations</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>
+ https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-screenshots
+ Central hosting is still being sorted out, poke sitter@kde.org for more info.
+ </image>
+ </screenshot>
+ </screenshots>
+ <provides>
+ <binary>%{APPNAMELC}</binary>
+ </provides>
+ <project_group>KDE</project_group>
+</component>
diff --git a/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}.desktop b/src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.desktop
index 8307113..7cc497a 100644
--- a/src/templates/C++/kde-frameworks5/src/%{APPNAMELC}.desktop
+++ b/src/templates/C++/kde-frameworks5/src/org.example.%{APPNAMELC}.desktop
@@ -58,4 +58,3 @@ GenericName[sr@latin]=Jednostavan program napisan nad Radnim okvirima KDE‑a
GenericName[sv]=Ett enkelt program skrivet med KDE:s ramverk
GenericName[uk]=Проста програма, написана за допомогою KDE Frameworks
GenericName[x-test]=xxA Simple Application written with KDE Frameworksxx
-GenericName[zh_TW]=一個以 KDE Frameworks 撰寫的簡易應用程式