[nautilus-sendto] main: Add AppData to show up in Software



commit bd527b9a1206b4c0ff8ea7000525dc15d4e839d3
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 29 13:17:13 2016 +0200

    main: Add AppData to show up in Software
    
    Make nautilus-sendto show up in Software as an extension to nautilus.
    
    Original appdata file from Frank Zimmer <frank e zimmer gmail com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=769539

 po/POTFILES.in                      |    1 +
 po/POTFILES.skip                    |    1 +
 src/Makefile.am                     |    9 +++++++++
 src/nautilus-sendto.metainfo.xml.in |   12 ++++++++++++
 4 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c30b7f1..fc1514e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 src/nautilus-sendto.c
+src/nautilus-sendto.metainfo.xml.in
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..5778ed6
--- /dev/null
+++ b/po/POTFILES.skip
@@ -0,0 +1 @@
+src/nautilus-sendto.metainfo.xml
diff --git a/src/Makefile.am b/src/Makefile.am
index 0a3158f..bb9f257 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,3 +10,12 @@ bin_PROGRAMS = nautilus-sendto
 
 nautilus_sendto_SOURCES = nautilus-sendto.c
 nautilus_sendto_LDADD = $(NAUTILUS_SENDTO_LIBS)
+
+EXTRA_DIST = nautilus-sendto.metainfo.xml.in
+CLEANFILES = nautilus-sendto.metainfo.xml
+
+appstreamdir = $(datadir)/appdata
+appstream_in_files = nautilus-sendto.metainfo.xml.in
+appstream_DATA = $(appstream_in_files:.xml.in=.xml)
+
+@INTLTOOL_XML_RULE@
diff --git a/src/nautilus-sendto.metainfo.xml.in b/src/nautilus-sendto.metainfo.xml.in
new file mode 100644
index 0000000..dedde0d
--- /dev/null
+++ b/src/nautilus-sendto.metainfo.xml.in
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+  <id>nautilus-sendto</id>
+  <extends>nautilus.desktop</extends>
+  <_name>Nautilus Send to</_name>
+  <_summary>Integrates mail clients into the Nautilus file manager</_summary>
+  <url type="homepage">https://wiki.gnome.org/Apps/Nautilus/</url>
+  <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=nautilus-sendto</url>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <update_contact>hadess hadess net</update_contact>
+</component>


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