# HG changeset patch
# Node ID 9350c09b90de
# Parent  9f71e90ac72d
diff --git a/pidgin/data/im.pidgin.Pidgin3.appdata.xml.in b/pidgin/data/im.pidgin.Pidgin3.appdata.xml.in
deleted file mode 100644
--- a/pidgin/data/im.pidgin.Pidgin3.appdata.xml.in
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
-<!-- Copyright 2014-2022 Pidgin Developers <devel@pidgin.im> -->
-
-<component type="desktop-application">
-  <id>im.pidgin.Pidgin3.desktop</id>
-  <metadata_license>CC0-1.0</metadata_license>
-  <project_license>GPL-2.0+</project_license>
-  <name>Pidgin</name>
-  <summary>Instant Messaging Client</summary>
-  <description>
-    <p>
-      Pidgin is a chat program which lets you log into accounts on multiple
-      chat networks simultaneously.
-    </p>
-    <p>
-      This means that you can be chatting with friends on XMPP and sitting in
-      an IRC channel at the same time.
-    </p>
-  </description>
-
-  <launchable type="desktop-id">im.pidgin.Pidgin3.desktop</launchable>
-  <provides>
-    <id>pidgin3.desktop</id>
-  </provides>
-
-  <screenshots>
-    <screenshot type="default">
-      <image>https://old.pidgin.im/shared/img/contact_window.png</image>
-      <caption>Buddy list showing friends on different networks</caption>
-    </screenshot>
-  </screenshots>
-
-  <url type="homepage">https://pidgin.im/</url>
-  <url type="bugtracker">https://issues.imfreedom.org/issues/PIDGIN</url>
-  <url type="faq">https://pidgin.im/development/faq/</url>
-  <url type="help">https://pidgin.im/help/</url>
-
-  <update_contact>devel@pidgin.im</update_contact>
-
-  <content_rating type="oars-1.1">
-    <content_attribute id="social-chat">intense</content_attribute>
-    <content_attribute id="social-info">mild</content_attribute>
-    <content_attribute id="social-audio">intense</content_attribute>
-    <content_attribute id="social-contacts">intense</content_attribute>
-  </content_rating>
-</component>
diff --git a/pidgin/data/im.pidgin.Pidgin3.metainfo.xml b/pidgin/data/im.pidgin.Pidgin3.metainfo.xml
new file mode 100644
--- /dev/null
+++ b/pidgin/data/im.pidgin.Pidgin3.metainfo.xml
@@ -0,0 +1,411 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+  <id>im.pidgin.Pidgin3</id>
+
+  <name>Pidgin</name>
+  <summary>Universal chat client</summary>
+
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0-or-later</project_license>
+
+  <project_group>Instant Messaging Freedom</project_group>
+  <developer id="pidgin.im">Pidgin Team</developer>
+
+  <supports>
+    <control>pointing</control>
+    <control>keyboard</control>
+    <control>touch</control>
+  </supports>
+
+  <recommends>
+    <internet>always</internet>
+  </recommends>
+
+  <description>
+    <p>
+      Pidgin is a chat client that puts all chat networks into a single user interface which means you can focus on talking with your friends instead of figuring out where to talk to them.
+    </p>
+  </description>
+
+  <keywords>
+    <keyword translate="no">Bonjour</keyword>
+    <keyword translate="no">IRC</keyword>
+    <keyword translate="no">IRCv3</keyword>
+    <keyword translate="no">Jabber</keyword>
+    <keyword translate="no">XMPP</keyword>
+    <keyword>chat</keyword>
+    <keyword>direct message</keyword>
+    <keyword>dm</keyword>
+    <keyword>group dm</keyword>
+    <keyword>instant message</keyword>
+    <keyword>instant messaging</keyword>
+    <keyword>message</keyword>
+    <keyword>messaging</keyword>
+  </keywords>
+
+  <!-- See https://specifications.freedesktop.org/menu-spec/latest/apa.html for
+       a list of categories.
+    -->
+  <categories>
+    <category>AudioVideo</category>
+    <category>Chat</category>
+    <category>GTK</category>
+    <category>InstantMessaging</category>
+    <category>IRCClient</category>
+    <category>Network</category>
+    <category>VideoConference</category>
+  </categories>
+
+  <launchable type="desktop-id">im.pidgin.pidgin3.desktop</launchable>
+
+  <url type="bugtracker">https://issues.imfreedom.org/</url>
+  <url type="contact">https://pidgin.im/contact/</url>
+  <url type="contribute">https://docs.imfreedom.org/contributors-guide/</url>
+  <url type="donation">https://imfreedom.org/donate/</url>
+  <url type="faq">https://pidgin.im/development/faq/</url>
+  <url type="help">https://pidgin.im/help/</url>
+  <url type="homepage">https://pidgin.im/</url>
+  <url type="vcs-browser">https://keep.imfreedom.org/pidgin/pidgin/file/default/</url>
+
+  <!-- Generated at https://hughsie.github.io/oars/generate.html -->
+  <content_rating type="oars-1.0">
+    <content_attribute id="language-profanity">intense</content_attribute>
+    <content_attribute id="language-humor">intense</content_attribute>
+    <content_attribute id="social-chat">intense</content_attribute>
+    <content_attribute id="social-audio">intense</content_attribute>
+    <content_attribute id="social-contacts">intense</content_attribute>
+  </content_rating>
+
+  <!-- kudos come from GNOME Software and is non standard so appstreamcli
+       throws a warning about it.
+
+       https://github.com/endlessm/gnome-software/blob/master/doc/kudos.md
+    -->
+  <kudos>
+    <kudo>ModernToolkit</kudo>
+  </kudos>
+
+  <releases>
+    <release version="2.14.12" date="2022-12-31">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.12/</url>
+    </release>
+    <release version="2.14.11" date="2022-12-31">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.11/</url>
+    </release>
+    <release version="2.14.10" date="2022-06-02">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.10/</url>
+    </release>
+    <release version="2.14.9" date="2022-04-28">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.9/</url>
+    </release>
+    <release version="2.14.8" date="2021-10-14">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.8/</url>
+    </release>
+    <release version="2.14.7" date="2021-09-16">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.7/</url>
+    </release>
+    <release version="2.14.6" date="2021-07-08">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.6/</url>
+    </release>
+    <release version="2.14.5" date="2021-06-03">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.5/</url>
+    </release>
+    <release version="2.14.4" date="2021-04-29">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.4/</url>
+    </release>
+    <release version="2.14.3" date="2021-04-08">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.3/</url>
+    </release>
+    <release version="2.14.2" date="2021-04-01">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.2/</url>
+    </release>
+    <release version="2.14.1" date="2020-11-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.1/</url>
+    </release>
+    <release version="2.14.0" date="2020-10-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.14.0/</url>
+    </release>
+    <release version="2.13.0" date="2018-03-08">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.13.0/</url>
+    </release>
+    <release version="2.12.0" date="2017-03-09">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.12.0/</url>
+    </release>
+    <release version="2.11.0" date="2016-06-21">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.11.0/</url>
+    </release>
+    <release version="2.10.12" date="2015-12-31">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.12/</url>
+    </release>
+    <release version="2.10.11" date="2014-11-23">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.11/</url>
+    </release>
+    <release version="2.10.10" date="2014-10-22">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.10/</url>
+    </release>
+    <release version="2.10.9" date="2014-02-02">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.9/</url>
+    </release>
+    <release version="2.10.8" date="2014-01-28">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.8/</url>
+    </release>
+    <release version="2.10.7" date="2013-02-13">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.7/</url>
+    </release>
+    <release version="2.10.6" date="2012-07-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.6/</url>
+    </release>
+    <release version="2.10.5" date="2012-07-05">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.5/</url>
+    </release>
+    <release version="2.10.4" date="2012-05-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.4/</url>
+    </release>
+    <release version="2.10.3" date="2012-03-26">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.3/</url>
+    </release>
+    <release version="2.10.2" date="2012-03-14">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.2/</url>
+    </release>
+    <release version="2.10.1" date="2011-12-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.1/</url>
+    </release>
+    <release version="2.10.0" date="2011-08-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.10.0/</url>
+    </release>
+    <release version="2.9.0" date="2011-06-23">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.9.0/</url>
+    </release>
+    <release version="2.8.0" date="2011-06-07">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.8.0/</url>
+    </release>
+    <release version="2.7.11" date="2011-03-10">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.11/</url>
+    </release>
+    <release version="2.7.10" date="2011-02-06">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.10/</url>
+    </release>
+    <release version="2.7.9" date="2010-12-26">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.9/</url>
+    </release>
+    <release version="2.7.8" date="2010-12-19">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.8/</url>
+    </release>
+    <release version="2.7.7" date="2010-11-23">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.7/</url>
+    </release>
+    <release version="2.7.6" date="2010-11-21">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.6/</url>
+    </release>
+    <release version="2.7.5" date="2010-10-31">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.5/</url>
+    </release>
+    <release version="2.7.4" date="2010-10-20">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.4/</url>
+    </release>
+    <release version="2.7.3" date="2010-08-10">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.3/</url>
+    </release>
+    <release version="2.7.2" date="2010-07-21">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.2/</url>
+    </release>
+    <release version="2.7.1" date="2010-05-29">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.1/</url>
+    </release>
+    <release version="2.7.0" date="2010-05-12">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.7.0/</url>
+    </release>
+    <release version="2.6.6" date="2010-02-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.6/</url>
+    </release>
+    <release version="2.6.5" date="2010-01-08">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.5/</url>
+    </release>
+    <release version="2.6.4" date="2009-11-29">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.4/</url>
+    </release>
+    <release version="2.6.3" date="2009-10-16">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.3/</url>
+    </release>
+    <release version="2.6.2" date="2009-09-05">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.2/</url>
+    </release>
+    <release version="2.6.1" date="2009-08-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.1/</url>
+    </release>
+    <release version="2.6.0" date="2009-08-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.6.0/</url>
+    </release>
+    <release version="2.5.9" date="2009-08-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.9/</url>
+    </release>
+    <release version="2.5.8" date="2009-06-27">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.8/</url>
+    </release>
+    <release version="2.5.7" date="2009-06-20">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.7/</url>
+    </release>
+    <release version="2.5.6" date="2009-05-19">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.6/</url>
+    </release>
+    <release version="2.5.5" date="2009-03-01">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.5/</url>
+    </release>
+    <release version="2.5.4" date="2009-01-12">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.4/</url>
+    </release>
+    <release version="2.5.3" date="2008-12-20">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.3/</url>
+    </release>
+    <release version="2.5.2" date="2008-10-19">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.2/</url>
+    </release>
+    <release version="2.5.1" date="2008-08-30">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.1/</url>
+    </release>
+    <release version="2.5.0" date="2008-08-18">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.5.0/</url>
+    </release>
+    <release version="2.4.3" date="2008-07-01">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.4.3/</url>
+    </release>
+    <release version="2.4.2" date="2008-05-17">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.4.2/</url>
+    </release>
+    <release version="2.4.1" date="2008-03-31">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.4.1/</url>
+    </release>
+    <release version="2.4.0" date="2008-02-29">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.4.0/</url>
+    </release>
+    <release version="2.3.1" date="2007-12-07">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.3.1/</url>
+    </release>
+    <release version="2.3.0" date="2007-11-24">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.3.0/</url>
+    </release>
+    <release version="2.2.2" date="2007-10-23">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.2.2/</url>
+    </release>
+    <release version="2.2.1" date="2007-09-29">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.2.1/</url>
+    </release>
+    <release version="2.2.0" date="2007-09-13">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.2.0/</url>
+    </release>
+    <release version="2.1.1" date="2007-08-20">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.1.1/</url>
+    </release>
+    <release version="2.1.0" date="2007-07-28">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.1.0/</url>
+    </release>
+    <release version="2.0.2" date="2007-06-14">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.0.2/</url>
+    </release>
+    <release version="2.0.1" date="2007-05-24">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.0.1/</url>
+    </release>
+    <release version="2.0.0" date="2007-05-03">
+      <url>https://sourceforge.net/projects/pidgin/files/Pidgin/2.0.0/</url>
+    </release>
+    <release version="1.5.0" date="2005-08-11"/>
+    <release version="1.4.0" date="2005-07-07"/>
+    <release version="1.3.1" date="2005-06-09"/>
+    <release version="1.3.0" date="2005-05-10"/>
+    <release version="1.2.1" date="2005-04-03"/>
+    <release version="1.2.0" date="2005-03-17"/>
+    <release version="1.1.4" date="2005-02-24"/>
+    <release version="1.1.3" date="2005-02-17"/>
+    <release version="1.1.2" date="2005-01-20"/>
+    <release version="1.1.1" date="2004-12-28"/>
+    <release version="1.1.0" date="2004-12-02"/>
+    <release version="1.0.3" date="2004-11-11"/>
+    <release version="1.0.2" date="2004-10-19"/>
+    <release version="1.0.1" date="2004-10-07"/>
+    <release version="1.0.0" date="2004-09-17"/>
+    <release version="0.82.1" date="2004-08-27"/>
+    <release version="0.82" date="2004-08-26"/>
+    <release version="0.81" date="2004-08-05"/>
+    <release version="0.80" date="2004-07-15"/>
+    <release version="0.79" date="2004-06-24"/>
+    <release version="0.78" date="2004-05-30"/>
+    <release version="0.77" date="2004-04-22"/>
+    <release version="0.76" date="2004-04-01"/>
+    <release version="0.75" date="2004-01-09"/>
+    <release version="0.74" date="2003-11-25"/>
+    <release version="0.73" date="2003-11-21"/>
+    <release version="0.72" date="2003-10-31"/>
+    <release version="0.71" date="2003-10-09"/>
+    <release version="0.70" date="2003-09-28"/>
+    <release version="0.69" date="2003-09-24"/>
+    <release version="0.68" date="2003-09-01"/>
+    <release version="0.67" date="2003-08-14"/>
+    <release version="0.66" date="2003-07-18"/>
+    <release version="0.65" date="2003-07-16"/>
+    <release version="0.64" date="2003-05-29"/>
+    <release version="0.63" date="2003-05-16"/>
+    <release version="0.62" date="2003-04-23"/>
+    <release version="0.61" date="2003-04-07"/>
+    <release version="0.60" date="2003-04-04"/>
+    <release version="0.59.9" date="2003-03-01"/>
+    <release version="0.59.8" date="2003-01-06"/>
+    <release version="0.59.7" date="2002-12-21"/>
+    <release version="0.59.6" date="2002-11-07"/>
+    <release version="0.59.5" date="2002-10-14"/>
+    <release version="0.59.4" date="2002-10-06"/>
+    <release version="0.59.3" date="2002-09-14"/>
+    <release version="0.59.2" date="2002-09-09"/>
+    <release version="0.59.1" date="2002-08-25"/>
+    <release version="0.59" date="2002-06-24"/>
+    <release version="0.58" date="2002-05-13"/>
+    <release version="0.57" date="2002-04-25"/>
+    <release version="0.56" date="2002-04-11"/>
+    <release version="0.55" date="2002-03-29"/>
+    <release version="0.54" date="2002-03-14"/>
+    <release version="0.53" date="2002-02-28"/>
+    <release version="0.52" date="2002-02-17"/>
+    <release version="0.51" date="2002-01-24"/>
+    <release version="0.50" date="2001-12-14"/>
+    <release version="0.49" date="2001-11-29"/>
+    <release version="0.48" date="2001-11-18"/>
+    <release version="0.47" date="2001-11-01"/>
+    <release version="0.46" date="2001-10-18"/>
+    <release version="0.45" date="2001-10-04"/>
+    <release version="0.44" date="2001-09-20"/>
+    <release version="0.43" date="2001-09-06"/>
+    <release version="0.11.0-pre15" date="2001-08-28"/>
+    <release version="0.11.0-pre14" date="2001-06-17"/>
+    <release version="0.11.0-pre13" date="2001-06-06"/>
+    <release version="0.11.0-pre12" date="2001-05-29"/>
+    <release version="0.11.0-pre11" date="2001-04-30"/>
+    <release version="0.11.0-pre10" date="2001-04-13"/>
+    <release version="0.11.0-pre9" date="2001-03-26"/>
+    <release version="0.11.0-pre7" date="2001-03-16"/>
+    <release version="0.11.0-pre6" date="2001-03-06"/>
+    <release version="0.11.0-pre5" date="2001-02-26"/>
+    <release version="0.11.0-pre3" date="2000-12-15"/>
+    <release version="0.11.0-pre2" date="2000-12-04"/>
+    <release version="0.11.0-pre1" date="2000-12-03"/>
+    <release version="0.10.3" date="2000-10-09"/>
+    <release version="0.10.2" date="2000-10-07"/>
+    <release version="0.10.1" date="2000-09-15"/>
+    <release version="0.10.0" date="2000-09-11"/>
+    <release version="0.9.20" date="2000-07-14"/>
+    <release version="0.9.19" date="2000-06-09"/>
+    <release version="0.9.18" date="2000-06-02"/>
+    <release version="0.9.17" date="2000-05-31"/>
+    <release version="0.9.16" date="2000-05-31"/>
+    <release version="0.9.15" date="2000-05-06"/>
+    <release version="0.9.14" date="2000-04-24"/>
+    <release version="0.9.13" date="2000-03-27"/>
+    <release version="0.9.12" date="2000-03-25"/>
+    <release version="0.9.11" date="2000-03-22"/>
+    <release version="0.9.10" date="1999-11-03"/>
+    <release version="0.9.9" date="1999-10-31"/>
+    <release version="0.9.8" date="1999-10-04"/>
+    <release version="0.9.7" date="1999-08-08"/>
+    <release version="0.9.6" date="1999-08-01"/>
+    <release version="0.9.5" date="1999-07-25"/>
+    <release version="0.8.0" date="1999-05-01"/>
+  </releases>
+</component>
diff --git a/pidgin/data/meson.build b/pidgin/data/meson.build
--- a/pidgin/data/meson.build
+++ b/pidgin/data/meson.build
@@ -1,3 +1,61 @@
 subdir('icons')
 
 devenv.prepend('XDG_DATA_DIRS', meson.current_source_dir())
+
+if host_machine.system() == 'windows'
+	subdir_done()
+endif
+
+i18n = import('i18n')
+
+###############################################################################
+# MetaInfo file
+###############################################################################
+metainfo_base = 'im.pidgin.Pidgin3.metainfo.xml'
+metainfo_file = meson.current_source_dir() / metainfo_base
+
+appstreamcli_exe = find_program('appstreamcli', required: false)
+if appstreamcli_exe.found()
+	test(
+		'validate pidgin3 metainfo file',
+		appstreamcli_exe,
+		args: ['validate', '--no-net', '--pedantic', metainfo_file],
+	)
+endif
+
+i18n.merge_file(
+	input:  metainfo_file,
+	output: metainfo_base,
+	type: 'xml',
+	po_dir: meson.project_source_root() / 'po',
+	install: true,
+	install_dir: get_option('datadir') / 'metainfo',
+)
+
+###############################################################################
+# Desktop file
+###############################################################################
+PIDGIN_DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop'
+desktop_file_in = configure_file(
+	input : f'@PIDGIN_DESKTOP_FILE@.in.in',
+	output : f'@PIDGIN_DESKTOP_FILE@.in',
+	configuration : conf,
+)
+
+i18n.merge_file(
+	input : desktop_file_in,
+	output : PIDGIN_DESKTOP_FILE,
+	po_dir : meson.project_source_root() / 'po',
+	type : 'desktop',
+	install : true,
+	install_dir : get_option('datadir') / 'applications',
+)
+
+desktop_file_validate_exe = find_program('desktop-file-validate', required: false)
+if desktop_file_validate_exe.found()
+	test(
+		'validate pidgin3 desktop file',
+		desktop_file_validate_exe,
+		args: [meson.current_build_dir() / PIDGIN_DESKTOP_FILE],
+	)
+endif
diff --git a/pidgin/meson.build b/pidgin/meson.build
--- a/pidgin/meson.build
+++ b/pidgin/meson.build
@@ -265,29 +265,6 @@
     libraries : [gtk, libadwaita, libpurple_dep, gplugin_gtk_dep],
     variables : [f'plugindir=${libdir}/pidgin-@purple_major_version@'])
 
-if host_machine.system() != 'windows'
-	PIDGIN_DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop'
-	i18n = import('i18n')
-	desktop_file_in = configure_file(
-	    input : 'data' / f'@PIDGIN_DESKTOP_FILE@.in.in',
-	    output : f'@PIDGIN_DESKTOP_FILE@.in',
-	    configuration : conf)
-	i18n.merge_file(
-	    input : desktop_file_in,
-	    output : PIDGIN_DESKTOP_FILE,
-	    po_dir : meson.project_source_root() / 'po',
-	    type : 'desktop',
-	    install : true,
-	    install_dir : get_option('datadir') / 'applications')
-
-	i18n.merge_file(
-	    input : 'data/im.pidgin.Pidgin3.appdata.xml.in',
-	    output : 'im.pidgin.Pidgin3.appdata.xml',
-	    po_dir : meson.project_source_root() / 'po',
-	    install : true,
-	    install_dir : get_option('datadir') / 'metainfo')
-endif
-
 if enable_introspection
 	introspection_sources = libpidgin_SOURCES + libpidgin_headers + libpidgin_prefs_headers
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -232,6 +232,7 @@
 libpurple/win32/win32dep.c
 libpurple/xfer.c
 libpurple/xmlnode.c
+pidgin/data/im.pidgin.Pidgin3.metainfo.xml
 pidgin/gtkblist.c
 pidgin/gtkconv.c
 pidgin/gtkdialogs.c
