[gnome-nettool] Add AppData file for Software Center
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nettool] Add AppData file for Software Center
- Date: Tue, 3 Oct 2017 19:46:08 +0000 (UTC)
commit a3d073842e8ecc49c393a344098fe8e5a0a8579e
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue Oct 3 16:43:42 2017 -0300
Add AppData file for Software Center
https://bugzilla.gnome.org/show_bug.cgi?id=788358
configure.ac | 1 +
data/Makefile.am | 14 ++++++++++++--
data/gnome-nettool.appdata.xml.in | 35 +++++++++++++++++++++++++++++++++++
data/meson.build | 9 +++++++++
po/POTFILES.in | 1 +
5 files changed, 58 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 866e353..8e51ff0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,7 @@ AC_CONFIG_FILES([
Makefile
data/Makefile
data/gnome-nettool.desktop.in
+data/gnome-nettool.appdata.xml
help/Makefile
pixmaps/Makefile
pixmaps/icons/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 8fb7ea6..8ac2908 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -9,16 +9,26 @@ desktop_in_in_files = gnome-nettool.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+appdatadir = $(datadir)/appdata
+appdata_in_files = gnome-nettool.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
+$(appdata_DATA): $(appdata_in_files)
+ $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
+
gnome-nettool.desktop: gnome-nettool.desktop.in
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
EXTRA_DIST = \
$(desktop_in_in_files) \
+ $(appdata_in_files) \
$(gsettings_SCHEMAS) \
$(ui_DATA)
DISTCLEANFILES = \
- $(desktop_in_files)
+ $(desktop_in_files) \
+ $(data_appdata_DATA)
CLEANFILES = \
- $(desktop_DATA)
+ $(desktop_DATA) \
+ $(appdata_DATA)
diff --git a/data/gnome-nettool.appdata.xml.in b/data/gnome-nettool.appdata.xml.in
new file mode 100644
index 0000000..256ea63
--- /dev/null
+++ b/data/gnome-nettool.appdata.xml.in
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2014 Ryan Lerch <rlerch redhat com>
+ Copyright © 2017 Germán Poo-Caamaño <rlerch redhat com>
+-->
+<application
+ xmlns="https://www.freedesktop.org/standards/appdata/1.0"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:its="http://www.w3.org/2005/11/its">
+ <id type="desktop">gnome-nettool.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <_name>Network Tools</_name>
+ <_summary>Perform advanced networking analysis</_summary>
+ <description>
+ <_p>
+ Network Tools is a utility to perform advanced networking analysis
+ operations.
+ It features a range of networking tools that are typically done on
+ the command line, but allows you to perform them with a graphical
+ interface.
+ </_p>
+ <_p>
+ With Network Tools, you can perform the following: ping, netstat,
+ traceroute, port scans, lookup, finger and whois.
+ </_p>
+ </description>
+ <!-- <url type="homepage">http://projects.gnome.org/gnome-network/</url> -->
+ <screenshots>
+ <screenshot
type="default">https://projects.gnome.org/gnome-network/screenshots/info_info.jpg</screenshot>
+ <screenshot>https://projects.gnome.org/gnome-network/screenshots/info_netstat.jpg</screenshot>
+ <screenshot>https://projects.gnome.org/gnome-network/screenshots/info_lookup.jpg</screenshot>
+ </screenshots>
+ <translation type="gettext">gnome-nettool</translation>
+</application>
diff --git a/data/meson.build b/data/meson.build
index 250a35a..2e4b5a7 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -28,4 +28,13 @@ i18n.merge_file('desktop',
install: true,
install_dir: join_paths(prefix, datadir, 'applications'))
+i18n.merge_file('desktop',
+ type: 'xml',
+ input: 'gnome-nettool.appdata.xml.in',
+ output: 'gnome-nettool.appdata.xml',
+ po_dir: po_dir,
+ install: true,
+ install_dir: join_paths(prefix, datadir, 'appdata'),
+)
+
install_data('org.gnome.gnome-nettool.gschema.xml', install_dir: schemas_dir)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 062a96e..dbe03b8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
+data/gnome-nettool.appdata.xml.in
data/gnome-nettool.desktop.in.in
data/gnome-nettool.ui
data/org.gnome.gnome-nettool.gschema.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]