From ab45e692d77929e43182f245a006ff67836696f6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 2 Jan 2015 05:10:55 +0300 Subject: [PATCH] add AppStream to show in Software Centres https://bugzilla.gnome.org/show_bug.cgi?id=742214 Signed-off-by: Igor Gnatenko --- Makefile.am | 2 + configure.ac | 3 ++ data/Makefile.am | 2 +- data/appdata/Makefile.am | 8 ++++ .../appdata/org.gnome.Calendar.appdata.xml.in | 44 +++++++++++++++++++ 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 data/appdata/Makefile.am create mode 100644 data/appdata/org.gnome.Calendar.appdata.xml.in diff --git a/Makefile.am b/Makefile.am index 089b942f..c31ac6f7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,6 +29,8 @@ DISTCLEANFILES = \ intltool-update \ po/.intltool-merge-cache +DISTCHECK_CONFIGURE_FLAGS = --enable-appstream-util + # Remove doc directory on uninstall uninstall-local: -rm -r $(gnome_calendardocdir) diff --git a/configure.ac b/configure.ac index 99a5f4f7..32595d27 100644 --- a/configure.ac +++ b/configure.ac @@ -97,12 +97,15 @@ PKG_CHECK_MODULES(CALENDAR, libedataserver-1.2 >= $EDATASERVER_REQUIRED libical >= $LIBICAL_REQUIRED) +APPSTREAM_XML + AC_CONFIG_FILES([ Makefile src/Makefile data/Makefile data/org.gnome.Calendar.desktop.in data/icons/Makefile + data/appdata/Makefile po/Makefile.in ]) diff --git a/data/Makefile.am b/data/Makefile.am index 50135ed1..0b506b31 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = icons +SUBDIRS = icons appdata desktopdir = $(datadir)/applications desktop_in_files = org.gnome.Calendar.desktop.in diff --git a/data/appdata/Makefile.am b/data/appdata/Makefile.am new file mode 100644 index 00000000..559e5f74 --- /dev/null +++ b/data/appdata/Makefile.am @@ -0,0 +1,8 @@ +@APPSTREAM_XML_RULES@ +appstream_in_files = org.gnome.Calendar.appdata.xml.in +appstream_XML = $(appstream_in_files:.xml.in=.xml) +@INTLTOOL_XML_RULE@ +EXTRA_DIST = $(appdata_in_files) +CLEANFILES = $(appstream_XML) + +-include $(top_srcdir)/git.mk diff --git a/data/appdata/org.gnome.Calendar.appdata.xml.in b/data/appdata/org.gnome.Calendar.appdata.xml.in new file mode 100644 index 00000000..5a3f0afc --- /dev/null +++ b/data/appdata/org.gnome.Calendar.appdata.xml.in @@ -0,0 +1,44 @@ + + + + org.gnome.Calendar.desktop + CC0 + GPL-3.0+ + <_name>Calendar + <_summary>Calendar for GNOME + + + <_p> + Calendar is a simple and beautiful calendar application designed to fit + GNOME 3. + + <_p>Features: +
    + <_li>Week, month and year views + <_li>Basic editing of events + <_li>Evolution Data Server integration + <_li>Search support +
+
+ + + + https://feaneron.files.wordpress.com/2014/12/captura-de-tela-de-2014-12-23-191620.png + + + <_caption>Search for events + https://feaneron.files.wordpress.com/2014/12/captura-de-tela-de-2014-12-23-184243.png + + + <_caption>Calendar management + https://feaneron.files.wordpress.com/2014/12/calendar-selector.jpg + + + + https://wiki.gnome.org/Apps/Calendar + https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-calendar + GNOME + + ignatenko@src.gnome.org + +