[gucharmap] appdata: Add skeleton appdata file
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] appdata: Add skeleton appdata file
- Date: Sat, 16 Aug 2014 18:13:38 +0000 (UTC)
commit d1ddb2fc8b43407f4d66f2750ec640577ca03cac
Author: Christian Persch <chpe gnome org>
Date: Sat Aug 16 20:13:07 2014 +0200
appdata: Add skeleton appdata file
https://bugzilla.gnome.org/show_bug.cgi?id=722715
Makefile.am | 2 +-
configure.ac | 7 +++++++
data/Makefile.am | 30 ++++++++++++++++++++++++++++++
data/gucharmap.appdata.xml.in | 41 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 79 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f9d312c..fbdd6e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@ NULL =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
GITIGNOREFILES = m4
-SUBDIRS = po pixmaps gucharmap docs
+SUBDIRS = po pixmaps gucharmap data docs
if ENABLE_CHARMAP
SUBDIRS += help
diff --git a/configure.ac b/configure.ac
index ee43861..26a3ea8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,6 +177,12 @@ if test -z "$DESKTOP_FILE_VALIDATE"; then
AC_MSG_ERROR([desktop-file-validate not found])
fi
+AC_ARG_VAR([APPDATA_VALIDATE],[the appdata-validate programme])
+AC_PATH_PROG([APPDATA_VALIDATE],[appdata-validate],[])
+if test -z "$APPDATA_VALIDATE"; then
+ AC_MSG_ERROR([appdata-validate not found])
+fi
+
# ****
# i18n
# ****
@@ -280,6 +286,7 @@ Makefile
gucharmap.desktop.in
gucharmap.nsi
gucharmap.spec
+data/Makefile
docs/Makefile
docs/reference/Makefile
gucharmap/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..0bfdaa2
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,30 @@
+NULL =
+
+appdatadir = $(datadir)/appdata
+appdata_in_files = gucharmap.appdata.xml.in
+nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
+APPDATA_VALIDATE_FLAGS = --nonet
+appdata-validate: $(nodist_appdata_DATA)
+ for f in $^; do \
+ $(APPDATA_VALIDATE) $(APPDATA_VALIDATE_FLAGS) $$f; \
+ done
+
+#check-local: appdata-validate
+
+EXTRA_DIST = \
+ $(appdata_in_files) \
+ $(NULL)
+
+CLEANFILES = \
+ $(nodist_appdata_DATA) \
+ $(NULL)
+
+DISTCLEANFILES = \
+ $(nodist_appdata_DATA) \
+ $(NULL)
+
+ INTLTOOL_XML_RULE@
+
+-include $(top_srcdir)/git.mk
+
diff --git a/data/gucharmap.appdata.xml.in b/data/gucharmap.appdata.xml.in
new file mode 100644
index 0000000..99734d4
--- /dev/null
+++ b/data/gucharmap.appdata.xml.in
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2014 Christian Persch
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope conf it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+-->
+<!-- FIXME: the xmlns for appdata is made-up -->
+<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">gucharmap.desktop</id>
+ <metadata_license>GPL-3.0+</metadata_license>
+ <project_license>GPL-3.0+</project_license>
+ <_name>Character Map</_name>
+ <_summary>Insert special characters into documents</_summary>
+<!-- <description>
+ <_p>blah</_p>
+ <_p>blah blah</_p>
+ <_p>blah blah blah</_p>
+ </description>
+-->
+<!--
+ <screenshots>
+ <screenshot type="default">...</screenshot>
+ </screenshots>
+-->
+ <url type="homepage">https://wiki.gnome.org/Apps/Gucharmap</url>
+ <project_group>GNOME</project_group>
+</application>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]