Add appdata file

This commit is contained in:
Patrick Griffis
2017-01-17 07:43:48 -05:00
parent 01c2b3a1b2
commit 669dc27e1f
6 changed files with 66 additions and 1 deletions

View File

@ -78,6 +78,7 @@ PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_CHECK([1.42.0])
VAPIGEN_CHECK
APPSTREAM_XML

View File

@ -18,15 +18,25 @@ gsettings_SCHEMAS = org.gnome.sysprof2.gschema.xml
@GSETTINGS_RULES@
%.appdata.xml: %.appdata.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
@APPSTREAM_XML_RULES@
appstream_in_files = org.gnome.Sysprof2.appdata.xml.in
appstream_XML = $(appstream_in_files:.xml.in=.xml)
EXTRA_DIST = \
sysprof.pc.in \
org.gnome.Sysprof2.desktop \
$(appstream_in_files) \
$(mime_DATA) \
$(gsettings_SCHEMAS) \
meson.build \
$(NULL)
DISTCLEANFILES = $(pkgconfig_DATA)
DISTCLEANFILES = $(pkgconfig_DATA) $(appstream_XML)
GITIGNOREFILES = $(dbusservice_DATA)

View File

@ -1,4 +1,6 @@
datadir = get_option('datadir')
podir = join_paths(meson.source_root(), 'po')
msgfmt = find_program('msgfmt')
install_data('sysprof-mime.xml',
install_dir: join_paths(datadir, 'mime/packages')
@ -12,6 +14,14 @@ install_data('org.gnome.sysprof2.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0/schemas')
)
# TODO: 0.37.0 adds i18n.merge_file()
custom_target('appdata-file',
input: 'org.gnome.Sysprof2.appdata.xml.in',
output: 'org.gnome.Sysprof2.appdata.xml',
command: [msgfmt, '--xml', '--template', '@INPUT@', '-d', podir, '-o', '@OUTPUT@'],
install: true,
install_dir: join_paths(datadir, 'appdata')
)
pkgconf = configuration_data()
pkgconf.set('VERSION', meson.project_version())

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.gnome.Sysprof2.desktop</id>
<translation type="gettext">sysprof</translation>
<name>Sysprof</name>
<summary>Profiler for an application or entire system</summary>
<project_license>GPL-3.0+</project_license>
<project_group>GNOME</project_group>
<developer_name>The GNOME Foundation</developer_name>
<description>
<p>Sysprof allows you to profile applications to aid in debugging and optimization.</p>
</description>
<url type="homepage">https://wiki.gnome.org/Apps/Sysprof</url>
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=sysprof</url>
<url type="donation">https://www.gnome.org/friends</url>
<screenshots>
<screenshot type="default">
<image>https://git.gnome.org/browse/sysprof/plain/data/screenshots/sysprof-main-window.png</image>
</screenshot>
</screenshots>
<kudos>
<kudo>AppMenu</kudo>
<kudo>HiDpiIcon</kudo>
<kudo>ModernToolkit</kudo>
</kudos>
<provides>
<binary>sysprof</binary>
<binary>sysprof-cli</binary>
<dbus type="system">org.gnome.Sysprof2</dbus>
</provides>
<releases>
<release version="3.22.2" date="2016-11-28"/>
</releases>
<metadata_license>CC0-1.0</metadata_license>
<update_contact>tingping_AT_tingping.se</update_contact>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -1,5 +1,6 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
data/org.gnome.Sysprof2.appdata.xml.in
data/org.gnome.Sysprof2.desktop
data/org.gnome.sysprof2.gschema.xml
lib/resources/ui/sp-callgraph-view.ui