malcontent-control: Add an AppData file

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-12-19 13:39:35 +00:00
parent 8b62f08cf6
commit cf6331cac6
3 changed files with 76 additions and 0 deletions

View File

@ -38,6 +38,25 @@ if desktop_file_validate.found()
) )
endif endif
appdata_file = i18n.merge_file('appdata-file',
input: '@0@.appdata.xml.in'.format(application_id),
output: '@0@.appdata.xml'.format(application_id),
po_dir: join_paths(meson.source_root(), 'po'),
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
)
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test(
'validate-appdata', appstream_util,
args: [
'validate-relax', '--nonet', appdata_file.full_path(),
],
suite: ['malcontent-control'],
)
endif
# FIXME: Add icons and tests # FIXME: Add icons and tests
#subdir('icons') #subdir('icons')
#subdir('tests') #subdir('tests')

View File

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright © 2019 Endless Mobile, Inc. -->
<component type="desktop">
<id>org.freedesktop.MalcontentControl</id>
<metadata_license>CC-BY-SA-3.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<!-- Translators: the name of the application as it appears in a software center -->
<name>Parental Controls</name>
<!-- Translators: the brief summary of the application as it appears in a software center. -->
<summary>Set parental controls and monitor usage by users</summary>
<description>
<!-- Translators: These are the application description paragraphs in the AppData file. -->
<p>
Manage users parental controls restrictions, controlling how long they
can use the computer for, what software they can install, and what
installed software they can run.
</p>
</description>
<!--
<screenshots>
<screenshot type="default" width="400" height="480">
<image>https://FIXME/malcontent-control.png</image>
</screenshot>
</screenshots>
-->
<provides>
<binary>malcontent-control</binary>
</provides>
<launchable type="desktop-id">org.freedesktop.MalcontentControl.desktop</launchable>
<url type="homepage">https://gitlab.freedesktop.org/pwithnall/malcontent</url>
<url type="bugtracker">https://gitlab.freedesktop.org/pwithnall/malcontent/issues</url>
<url type="donation">http://www.gnome.org/friends/</url>
<url type="translate">https://wiki.gnome.org/TranslationProject/LocalisationGuide</url>
<update_contact>philip_at_tecnocode.co.uk</update_contact>
<project_group>GNOME</project_group>
<developer_name>The GNOME Project</developer_name>
<kudos>
<kudo>AppMenu</kudo>
<kudo>HighContrast</kudo>
<kudo>ModernToolkit</kudo>
</kudos>
<translation type="gettext">malcontent</translation>
<releases>
<release version="0.4.0" date="2019-07-17" type="stable">
<description>
<ul>
<li>Maintenance release of underlying parental controls library</li>
</ul>
</description>
</release>
</releases>
<content_rating type="oars-1.1"/>
</component>

View File

@ -3,5 +3,6 @@
accounts-service/com.endlessm.ParentalControls.policy.in accounts-service/com.endlessm.ParentalControls.policy.in
libmalcontent/manager.c libmalcontent/manager.c
malcontent-control/application.c malcontent-control/application.c
malcontent-control/org.freedesktop.MalcontentControl.appdata.xml.in
malcontent-control/org.freedesktop.MalcontentControl.desktop.in malcontent-control/org.freedesktop.MalcontentControl.desktop.in
pam/pam_malcontent.c pam/pam_malcontent.c