[aisleriot] appdata: Add appdata skeleton
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] appdata: Add appdata skeleton
- Date: Sat, 16 Aug 2014 16:45:45 +0000 (UTC)
commit 954b508790e19071f5dc852c8b80738f7095f6e8
Author: Christian Persch <chpe gnome org>
Date: Sat Aug 16 18:44:48 2014 +0200
appdata: Add appdata skeleton
https://bugzilla.gnome.org/show_bug.cgi?id=729724
configure.ac | 6 ++++++
data/Makefile.am | 27 ++++++++++++++++++++++-----
data/aisleriot.appdata.xml.in | 39 +++++++++++++++++++++++++++++++++++++++
po/POTFILES.in | 1 +
4 files changed, 68 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1e8f6e1..aaba9da 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,6 +386,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
+
if test "$platform_win32" = "yes" -a "$os_win32" = "yes"; then
AC_CHECK_TOOL([WINDRES],[windres],[no])
if test "$WINDRES" = "no"; then
diff --git a/data/Makefile.am b/data/Makefile.am
index f22ec14..a5454ea 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -20,30 +20,47 @@ desktop_in_files = \
$(NULL)
desktopdir = $(datadir)/applications
-desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
+nodist_desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
-desktop-file-validate: $(desktop_DATA)
+appdatadir = $(datadir)/appdata
+appdata_in_files = aisleriot.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
+
+desktop-file-validate: $(nodist_desktop_DATA)
for f in $^; do \
$(DESKTOP_FILE_VALIDATE) $$f; \
done
-check-local: desktop-file-validate
+check-local: desktop-file-validate
dist_valgrind_DATA = \
aisleriot.supp \
$(NULL)
+EXTRA_DIST = \
+ $(appdata_in_files) \
+ $(NULL)
+
CLEANFILES = \
- $(desktop_DATA) \
+ $(nodist_appdata_DATA) \
+ $(nodist_desktop_DATA) \
$(pkcatalog_DATA) \
$(NULL)
DISTCLEANFILES = \
- $(desktop_DATA) \
+ $(nodist_appdata_DATA) \
+ $(nodist_desktop_DATA) \
$(pkcatalog_DATA) \
$(NULL)
@INTLTOOL_DESKTOP_RULE@
+ INTLTOOL_XML_RULE@
-include $(top_srcdir)/git.mk
diff --git a/data/aisleriot.appdata.xml.in b/data/aisleriot.appdata.xml.in
new file mode 100644
index 0000000..5cfb735
--- /dev/null
+++ b/data/aisleriot.appdata.xml.in
@@ -0,0 +1,39 @@
+<?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">sol.desktop</id>
+ <metadata_license>GPL-3.0+</metadata_license>
+ <project_license>GPL-3.0+</project_license>
+ <_name>Aisleriot Solitaire</_name>
+ <_summary>Play many different solitaire games</_summary>
+<!-- <description>
+ <_p>blah</_p>
+ <_p>blah blah</_p>
+ <_p>blah blah blah</_p>
+ </description>
+-->
+ <screenshots>
+ <screenshot
type="default">https://wiki.gnome.org/Apps/Aisleriot?action=AttachFile&do=get&target=aisleriot-3.10.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://wiki.gnome.org/Apps/Aisleriot</url>
+ <project_group>GNOME</project_group>
+</application>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f3f9f90..5f4dd1e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
# List of source files containing translatable strings.
# Please keep this file in alphabetical order.
[encoding: UTF-8]
+data/aisleriot.appdata.xml.in
data/sol.desktop.in.in
src/aisleriot.schemas.in
src/ar-application.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]