[gnome-mahjongg] Update build for appstream-util validate



commit 675e98c98b129957a8f9976506fc420de36a8e1d
Author: Mario Wenzel <maweki gmail com>
Date:   Tue Nov 25 12:43:21 2014 +0100

    Update build for appstream-util validate

 configure.ac                       |    3 ++-
 data/Makefile.am                   |   15 ++++++++-------
 data/gnome-mahjongg.appdata.xml.in |    1 +
 3 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f24eb88..12a70cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,8 @@ AM_PROG_CC_C_O
 
 GLIB_GSETTINGS
 
+APPSTREAM_XML
+
 dnl ###########################################################################
 dnl Dependencies
 dnl ###########################################################################
@@ -29,7 +31,6 @@ PKG_CHECK_MODULES(GNOME_MAHJONGG, [
 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
 AC_SUBST(GLIB_COMPILE_RESOURCES)
 
-AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate], [/bin/true])
 AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
 
 dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index da30342..fd66cc9 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -20,13 +20,13 @@ desktop_in_files = gnome-mahjongg.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
-appdatadir = $(datadir)/appdata
-appdata_in_files = gnome-mahjongg.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appstream_in_files = gnome-mahjongg.appdata.xml.in
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
+ APPSTREAM_XML_RULES@
 @INTLTOOL_XML_RULE@
 
 EXTRA_DIST = \
-       $(appdata_in_files)     \
+       $(appstream_in_files)   \
        $(desktop_in_files)     \
        $(theme_DATA)           \
        $(gsettings_SCHEMAS)    \
@@ -35,11 +35,12 @@ EXTRA_DIST = \
        translatable_game_names.h
 
 CLEANFILES = \
-       $(appdata_DATA) \
+       $(appstream_XML)        \
        $(desktop_DATA)
 
-check-local: $(appdata_DATA) $(desktop_DATA)
-       $(APPDATA_VALIDATE) $(appdata_DATA)
+check-local: $(desktop_DATA)
        $(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
 
+DISTCHECK_CONFIGURE_FLAGS = --enable-appdata-check
+
 -include $(top_srcdir)/git.mk
diff --git a/data/gnome-mahjongg.appdata.xml.in b/data/gnome-mahjongg.appdata.xml.in
index 968ab8c..a615f82 100644
--- a/data/gnome-mahjongg.appdata.xml.in
+++ b/data/gnome-mahjongg.appdata.xml.in
@@ -5,6 +5,7 @@
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>GPL-2.0+ and CC-BY-SA-3.0</project_license>
  <_name>GNOME Mahjongg</_name>
+ <_summary>Match tiles and clear the board</_summary>
  <description>
   <_p>
    A solitaire version of the classic Eastern tile game. Tiles are stacked on


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]