summarylogtreecommitdiffstats
path: root/0001-Fix-AppStream-metadata-validation.patch
blob: 1728c4dde3fd36babd41227f136c82746982896f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
From 129892080bf7f5ab3e45657ec36d58ae082a8638 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Thu, 27 Dec 2018 15:42:41 +0100
Subject: [PATCH] Fix AppStream metadata validation

And don't use legacy path for metainfo file.
---
 gourmet.appdata.xml.in | 22 +++++++++++++++-------
 setup.cfg              |  2 +-
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/gourmet.appdata.xml.in b/gourmet.appdata.xml.in
index 4c5191c4..4337208e 100644
--- a/gourmet.appdata.xml.in
+++ b/gourmet.appdata.xml.in
@@ -1,9 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Copyright 2014 Thomas Hinkle <Thomas_Hinkle@alumni.brown.edu> -->
-<application>
- <id type="desktop">gourmet.desktop</id>
+<component type="desktop-application">
+ <id>com.github.gourmet</id>
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>GPL-2.0</project_license>
+ <name>Gourmet</name>
+ <summary>Organize recipes, create shopping lists, calculate nutritional information, and more</summary>
  <description>
   <_p>
    Gourmet Recipe Manager is a recipe-organizer that allows you to collect,
@@ -21,9 +23,15 @@
   </_p>
  </description>
  <screenshots>
-  <screenshot type="default">http://thinkle.github.io/gourmet/images/screenshots/SearchView.png</screenshot>
-  <screenshot>http://thinkle.github.io/gourmet/images/screenshots/CardView.png</screenshot>
+  <screenshot type="default">
+   <image>https://thinkle.github.io/gourmet/images/screenshots/SearchView.png</image>
+  </screenshot>
+  <screenshot>
+   <image>https://thinkle.github.io/gourmet/images/screenshots/CardView.png</image>
+  </screenshot>
  </screenshots>
- <url type="homepage">http://thinkle.github.io/gourmet/</url>
- <updatecontact>https://github.com/thinkle/gourmet/issues</updatecontact>
-</application>
+ <launchable type="desktop-id">gourmet.desktop</launchable>
+ <url type="homepage">https://thinkle.github.io/gourmet/</url>
+ <url type="bugtracker">https://github.com/thinkle/gourmet/issues</url>
+ <update_contact>Thomas_Hinkle@alumni.brown.edu</update_contact>
+</component>
diff --git a/setup.cfg b/setup.cfg
index 647f9660..880c7fed 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -17,7 +17,7 @@ desktop_files=[
 	("share/gourmet/plugins/import_export", glob.glob("gourmet/plugins/import_export/*.gourmet-plugin.in"))
 	]
 xml_files=[
-	("share/appdata", ("gourmet.appdata.xml.in",)),
+	("share/metainfo", ("gourmet.appdata.xml.in",)),
 	]
 
 [build_icons]
-- 
2.20.1