[sound-juicer] Add an app data file



commit bd6b9639fdfac5d371489c04236814c21120d435
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Wed May 28 19:14:46 2014 +0100

    Add an app data file
    
    Thanks to Richard Hughes for supplying the app data file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736866

 configure.ac                               |    3 ++
 data/Makefile.am                           |   11 ++++++++-
 data/appdata/sound-juicer-3.14-752x423.png |  Bin 0 -> 26722 bytes
 data/appdata/sound-juicer.appdata.xml.in   |   30 ++++++++++++++++++++++++++++
 po/POTFILES.in                             |    1 +
 5 files changed, 43 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 894fb4b..405af8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,9 @@ AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
 # Use the GNOME documentation framework
 YELP_HELP_INIT
 
+# Appdata validation and installation
+APPSTREAM_XML
+
 # Find GLib and GObject
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.38 gthread-2.0 gobject-2.0 gio-2.0)
 AC_SUBST(GLIB_CFLAGS)
diff --git a/data/Makefile.am b/data/Makefile.am
index ed146d7..7d83d70 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,6 +6,11 @@ desktop_in_files = sound-juicer.desktop.in.in
 desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
+ INTLTOOL_XML_RULE@
+ APPSTREAM_XML_RULES@
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
+appstream_in_files = appdata/sound-juicer.appdata.xml.in
+
 gsettings_SCHEMAS = org.gnome.sound-juicer.gschema.xml
 
 @GSETTINGS_RULES@
@@ -69,7 +74,8 @@ uninstall-local: uninstall-icons
 uninstall-hook: update-icon-cache
 
 CLEANFILES = \
-       $(desktop_DATA)
+       $(desktop_DATA) \
+       $(appstream_XML)
 
 DISTCLEANFILES = \
        $(desktop_DATA)
@@ -78,7 +84,8 @@ EXTRA_DIST = \
        $(gsettings_SCHEMAS) \
        sound-juicer.convert \
        $(man1_MANS) \
-       $(icons)
+       $(icons) \
+       $(appstream_in_files)
 
 MAINTAINERCLEANFILES = $(gsettings_SCHEMAS:.xml=.valid)
 
diff --git a/data/appdata/sound-juicer-3.14-752x423.png b/data/appdata/sound-juicer-3.14-752x423.png
new file mode 100644
index 0000000..500049c
Binary files /dev/null and b/data/appdata/sound-juicer-3.14-752x423.png differ
diff --git a/data/appdata/sound-juicer.appdata.xml.in b/data/appdata/sound-juicer.appdata.xml.in
new file mode 100644
index 0000000..8cbb82f
--- /dev/null
+++ b/data/appdata/sound-juicer.appdata.xml.in
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard hughsie com> -->
+
+<application>
+  <id type="desktop">sound-juicer.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <summary>CD ripper with a clean interface and simple preferences</summary>
+  <description>
+    <_p>
+      Sound Juicer is a simple and clean CD ripping tool.
+      It allows you to extract the audio from audio compact discs and convert
+      them into audio files that your computer can understand and play.
+      Sound Juicer can also play the audio tracks directly from the CD, allowing
+      you to preview the CD before ripping it.
+    </_p>
+    <_p>
+      Sound Juicer is designed to be easy to use, and to work with little user
+      intervention.
+      When you start Sound Juicer, it will examine the CD in the drive and try
+      to locate information about the audio tracks using the freely-available
+      MusicBrainz service.
+    </_p>
+  </description>
+  <url type="homepage">https://wiki.gnome.org/Apps/SoundJuicer</url>
+  <screenshots>
+    <screenshot 
type="default">https://git.gnome.org/browse/sound-juicer/plain/data/appdata/sound-juicer-3.14-752x423.png</screenshot>
+  </screenshots>
+  <updatecontact>pwood(at)src.gnome.org</updatecontact>
+  <project_group>GNOME</project_group>
+</application>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ad9044c..7337616 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,6 +3,7 @@
 [encoding: UTF-8]
 [type: gettext/gsettings]data/org.gnome.sound-juicer.gschema.xml
 data/sound-juicer.desktop.in.in
+data/appdata/sound-juicer.appdata.xml.in
 [type: gettext/glade]data/sound-juicer.ui
 [type: gettext/glade]data/sound-juicer-menu.ui
 libjuicer/sj-error.c


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