[gnome-2048] Add AppData file
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048] Add AppData file
- Date: Fri, 9 Jan 2015 23:20:09 +0000 (UTC)
commit 9d827aa5e9d19bb230afb638d09cc6a95bcdcfe4
Author: Juan R. García Blanco <juanrgar gmail com>
Date: Sat Jan 10 00:19:49 2015 +0100
Add AppData file
configure.ac | 1 +
data/Makefile.am | 9 ++++++++-
data/gnome-2048.appdata.xml.in | 38 ++++++++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e534e44..db0501f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,7 @@ PKG_CHECK_MODULES(GNOME_2048, [
gee-0.8 >= $GEE_REQUIRED
])
+AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate], [/bin/true])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
diff --git a/data/Makefile.am b/data/Makefile.am
index 97a2002..c4e64b3 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,14 +8,21 @@ desktop_in_files = gnome-2048.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
+appdatadir = $(datadir)/appdata
+appdata_in_files = gnome-2048.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+ INTLTOOL_XML_RULE@
+
EXTRA_DIST = \
+ $(appdata_in_files) \
$(gsettings_SCHEMAS) \
$(desktop_in_files)
CLEANFILES = \
$(desktop_DATA)
-check-local: $(desktop_DATA)
+check-local: $(appdata_DATA) $(desktop_DATA)
+ $(APPDATA_VALIDATE) $(appdata_DATA)
$(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
-include $(top_srcdir)/git.mk
diff --git a/data/gnome-2048.appdata.xml.in b/data/gnome-2048.appdata.xml.in
new file mode 100644
index 0000000..8726dd5
--- /dev/null
+++ b/data/gnome-2048.appdata.xml.in
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Juan R. García Blanco -->
+<application>
+ <id type="desktop">gnome-2048.desktop</id>
+ <metadata_license>CC-BY-SA-3.0</metadata_license>
+ <project_license>GPL-3.0+</project_license>
+ <_name>GNOME 2048</_name>
+ <_summary>Obtain the 2048 tile</_summary>
+ <description>
+ <_p>
+ Play the highly addictive 2048 game. GNOME 2048 is a clone of the popular
+ single-player puzzle game. Gameplay consists of joining numbers in a grid
+ and obtain the 2048 tile.
+ </_p>
+ <_p>
+ Use your keyboard's arrow keys to slide all tiles in the desired direction.
+ Be careful: all tiles slide to their farthest possible positions, you cannot
+ slide just one tile or one row or column. Tiles with the same value are
+ joined when slided one over the other.
+ </_p>
+ <_p>
+ With every new tile obtained you increase your score. If you think you can easily
+ get the 2048 tile, do not let it stop you, the game does not end there, you can
+ continue joining tiles and improving your score.
+ </_p>
+ <_p>
+ Originally created by Gabriele Cirulli, 2048 has gained much popularity
+ due to it being highly addictive. Cirulli's 2048 is in turn a clone of
+ the 1024 game and includes ideas from other clones.
+ </_p>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="1280"
height="720">https://wiki.gnome.org/Apps/2048?action=AttachFile&do=get&target=gnome-2048-software.png</screenshot>
+ </screenshots>
+ <url type="homepage">https://wiki.gnome.org/Apps/2048</url>
+ <updatecontact>games_list_at_gnome.org</updatecontact>
+ <project_group>GNOME</project_group>
+</application>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]