File appdata.patch of Package keepassx

From fd4dd5883622db6e3fd14b5d5c57cbcfff89ec88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
 <Mailaender@users.noreply.github.com>
Date: Sun, 29 Jan 2017 11:38:17 +0100
Subject: [PATCH 1/2] Add a Linux AppData file

---
 share/linux/keepassx.appdata.xml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 share/linux/keepassx.appdata.xml

diff --git a/share/linux/keepassx.appdata.xml b/share/linux/keepassx.appdata.xml
new file mode 100644
index 0000000..f3b73e5
--- /dev/null
+++ b/share/linux/keepassx.appdata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+  <id type="desktop">keepassx.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <license>GPL-2.0 and LGPL-2.1 and LGPL-3.0+</license>
+  <name>KeePassX</name>
+  <summary>Cross Platform Password Manager</summary>
+  <description>
+    <p>
+      KeePassX is a free/open-source password manager or safe which helps you to
+      manage your passwords in a secure way. You can put all your passwords in one
+      database, which is locked with one master key or a key-disk. So you only have
+      to remember one single master password or insert the key-disk to unlock the
+      whole database. The databases are encrypted using the best and most secure
+      encryption algorithms currently known (AES and Twofish).
+    </p>
+  </description>
+  <url type="homepage">https://www.keepassx.org</url>
+  <screenshots>
+    <screenshot type="default">https://www.keepassx.org/wp-content/uploads/2016/02/kpx2_main.png</screenshot>
+    <screenshot>https://www.keepassx.org/wp-content/uploads/2016/02/kpx2_entry.png</screenshot>
+    <screenshot>https://www.keepassx.org/wp-content/uploads/2016/02/kpx2_db_settings.png</screenshot>
+  </screenshots>
+</application>

From d7986536097361e90506b2fd1d953e737ff47d7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
 <Mailaender@users.noreply.github.com>
Date: Sun, 29 Jan 2017 11:39:18 +0100
Subject: [PATCH 2/2] Install the AppData file on Linux

---
 share/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt
index 6a276d9..e1f3056 100644
--- a/share/CMakeLists.txt
+++ b/share/CMakeLists.txt
@@ -26,6 +26,7 @@ if(UNIX AND NOT APPLE)
             FILES_MATCHING PATTERN "application-x-keepassx.png" PATTERN "application-x-keepassx.svgz")
     install(FILES linux/keepassx.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
     install(FILES linux/keepassx.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
+    install(FILES linux/keepassx.appdata.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/appdata)
 endif(UNIX AND NOT APPLE)
 
 if(APPLE)
openSUSE Build Service is sponsored by