diff --git a/malcontent-control/meson.build b/malcontent-control/meson.build index 17a9885..63e9b91 100644 --- a/malcontent-control/meson.build +++ b/malcontent-control/meson.build @@ -38,6 +38,25 @@ if desktop_file_validate.found() ) 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 #subdir('icons') #subdir('tests') diff --git a/malcontent-control/org.freedesktop.MalcontentControl.appdata.xml.in b/malcontent-control/org.freedesktop.MalcontentControl.appdata.xml.in new file mode 100644 index 0000000..5c91ab2 --- /dev/null +++ b/malcontent-control/org.freedesktop.MalcontentControl.appdata.xml.in @@ -0,0 +1,56 @@ + + + + org.freedesktop.MalcontentControl + CC-BY-SA-3.0 + GPL-2.0+ + + + Parental Controls + + + Set parental controls and monitor usage by users + + + +

+ 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. +

+
+ + + malcontent-control + + org.freedesktop.MalcontentControl.desktop + https://gitlab.freedesktop.org/pwithnall/malcontent + https://gitlab.freedesktop.org/pwithnall/malcontent/issues + http://www.gnome.org/friends/ + https://wiki.gnome.org/TranslationProject/LocalisationGuide + philip_at_tecnocode.co.uk + GNOME + The GNOME Project + + AppMenu + HighContrast + ModernToolkit + + malcontent + + + +
    +
  • Maintenance release of underlying parental controls library
  • +
+
+
+
+ +
diff --git a/po/POTFILES.in b/po/POTFILES.in index 46e0103..9f4b4eb 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -3,5 +3,6 @@ accounts-service/com.endlessm.ParentalControls.policy.in libmalcontent/manager.c malcontent-control/application.c +malcontent-control/org.freedesktop.MalcontentControl.appdata.xml.in malcontent-control/org.freedesktop.MalcontentControl.desktop.in pam/pam_malcontent.c