From d78799708cb5fb8704909cffa2db6ab74ef3dd3f Mon Sep 17 00:00:00 2001 From: Julian Richen Date: Mon, 4 Jun 2018 17:57:40 -0400 Subject: [PATCH 1/2] meson: Improve and validate desktop entry This improves the desktop entry a bit and adds a test to validate it. --- data/meson.build | 9 +++++++++ data/sm.puri.Calls.desktop | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/data/meson.build b/data/meson.build index 178fc2f..cd814e1 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,7 +1,16 @@ datadir = get_option('datadir') +# Desktop file install_data('sm.puri.Calls.desktop', install_dir : join_paths(datadir, 'applications')) +desktop_utils = find_program('desktop-file-validate', required: false) +if desktop_utils.found() + test('Validate desktop file', desktop_utils, + args: ['sm.puri.Calls.desktop'] + ) +endif + +# Icons install_data('sm.puri.Calls.png', install_dir : join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps')) diff --git a/data/sm.puri.Calls.desktop b/data/sm.puri.Calls.desktop index dff43d7..2b16058 100644 --- a/data/sm.puri.Calls.desktop +++ b/data/sm.puri.Calls.desktop @@ -1,13 +1,14 @@ [Desktop Entry] Name=Calls GenericName=Phone -Comment=Make telephone calls +Comment=A phone dialer and call handler # Translators: These are desktop search terms. Do not translate semicolons, end line with a semicolon. Keywords=Telephone;Call;Phone;Dial;Dialer;PTSN; # Translators: Do NOT translate or transliterate this text (this is an icon file name)! Icon=sm.puri.Calls TryExec=calls -Exec=calls +Exec=calls %U Type=Application +StartupNotify=true Terminal=false Categories=GNOME;GTK;Telephony; From 6755d977111d72c3a7bd5db0bc20be51e93ae138 Mon Sep 17 00:00:00 2001 From: Julian Richen Date: Mon, 4 Jun 2018 17:57:40 -0400 Subject: [PATCH 2/2] meson: Add an appdata and a validation test This adds an appdata, installs it and adds a test to validate it. --- data/meson.build | 12 +++++++ data/sm.puri.Calls.appdata.xml | 60 ++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 data/sm.puri.Calls.appdata.xml diff --git a/data/meson.build b/data/meson.build index cd814e1..d497a30 100644 --- a/data/meson.build +++ b/data/meson.build @@ -11,6 +11,18 @@ if desktop_utils.found() ) endif +# Appdata file +install_data('sm.puri.Calls.appdata.xml', + install_dir: join_paths(datadir, 'metainfo'), +) + +appstream_util = find_program('appstream-util', required: false) +if appstream_util.found() + test('Validate appstream file', appstream_util, + args: ['validate-relax', 'sm.puri.Calls.appdata.xml'] + ) +endif + # Icons install_data('sm.puri.Calls.png', install_dir : join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps')) diff --git a/data/sm.puri.Calls.appdata.xml b/data/sm.puri.Calls.appdata.xml new file mode 100644 index 0000000..66e1fd6 --- /dev/null +++ b/data/sm.puri.Calls.appdata.xml @@ -0,0 +1,60 @@ + + + sm.puri.Calls.desktop + CC0 + GPL-3.0+ + Calls + A phone dialer and call handler + + Calls is a simple, elegant phone dialer and call handler built using GTK+ 3. + + https://gitlab.gnome.org/Community/Purism/calls + https://gitlab.gnome.org/Community/Purism/calls/issues + + GNOME + Purism Developers + + + ModernToolkit + + + + Audio + + + + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + intense + none + none + none + none + + + + + Pre-release development + + +