[hitori] build: Add an AppData file for the application



commit f3514bcb07ed9531f493b2935e7c1023b2080c9a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Sep 10 21:04:20 2013 -0600

    build: Add an AppData file for the application
    
    See: http://people.freedesktop.org/~hughsient/appdata/.

 Makefile.am                |   10 ++++++++++
 data/hitori.appdata.xml.in |   20 ++++++++++++++++++++
 po/POTFILES.in             |    1 +
 3 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 7b7ab41..c03ce39 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -88,6 +88,16 @@ EXTRA_DIST += \
        $(NULL)
 CLEANFILES = $(desktop_DATA)
 
+# AppData
+ INTLTOOL_XML_RULE@
+
+appdatadir = $(datadir)/appdata
+appdata_in_files = data/hitori.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+
+EXTRA_DIST += $(appdata_in_files)
+CLEANFILES += $(appdata_DATA)
+
 # Gubbins
 EXTRA_DIST += \
        autogen.sh \
diff --git a/data/hitori.appdata.xml.in b/data/hitori.appdata.xml.in
new file mode 100644
index 0000000..74627fc
--- /dev/null
+++ b/data/hitori.appdata.xml.in
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+       <id type="desktop">hitori.desktop</id>
+       <licence>CC BY-SA</licence>
+       <description>
+               <!-- Translators: These are the application description paragraphs in the AppData file. -->
+               <_p>Hitori is a logic game similar to Sudoku.</_p>
+               <_p>You play the game against the clock, aiming to eliminate all
+                   the duplicate numbers in each row and column in the fastest
+                   time. Multiple sizes of game board are supported, and you
+                   can place markers on cells to help work out the solution.
+                   If you get stuck, the game can give you a hint.</_p>
+       </description>
+       <screenshots>
+               <!-- Translators: This should be the URI of a 402×493 pixel screenshot of Hitori in your 
language. You may attach new screenshots to the existing wiki page. If you can't take a screenshot, leave the 
string as the English screenshot. -->
+               <_screenshot type="default" width="402" 
height="493">https://wiki.gnome.org/Apps/Hitori?action=AttachFile&amp;do=get&amp;target=screenshot-hitori.png</_screenshot>
+       </screenshots>
+       <url type="homepage">https://wiki.gnome.org/Apps/Hitori</url>
+       <updatecontact>philip_at_tecnocode.co.uk</updatecontact>
+</application>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a6d9801..13ab512 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
 # List of source files containing translatable strings.
 [encoding: UTF-8]
 data/hitori.desktop.in
+data/hitori.appdata.xml.in
 [type: gettext/glade]data/hitori.ui
 src/interface.c
 src/main.c


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