summaryrefslogtreecommitdiff
blob: acc2b0ca9e8828f51d6a31a88d3527a10da592ba (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
https://github.com/Cangjians/ibus-cangjie/commit/378f57b9126eb2af7660c45073107ba8f1dac3f8

Author: Boyuan Yang <byang@debian.org>

--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,7 @@ ibus_cangjie_datadir = $(pkgdatadir)
 @INTLTOOL_XML_RULE@
 appdata_in_files = data/cangjie.appdata.xml.in data/quick.appdata.xml.in
 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
-appdatadir = $(datadir)/appdata
+appdatadir = $(datadir)/metainfo
 
 component_in_in_files = data/cangjie.xml.in.in data/quick.xml.in.in
 component_DATA = $(component_in_in_files:.xml.in.in=.xml)
--- a/data/cangjie.appdata.xml.in
+++ b/data/cangjie.appdata.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<application>
-  <id type="inputmethod">cangjie.xml</id>
-  <licence>CC0</licence>
+<component type="inputmethod">
+  <id>cangjie.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
   <_name>Cangjie</_name>
   <_summary>Cangjie input method</_summary>
   <description>
@@ -12,6 +12,6 @@
        experience for people of the SAR by default, but provide useful options
        for others.</_p>
   </description>
-  <url type="homepage">http://cangjians.github.io/ibus-cangjie</url>
-  <updatecontact>hklug@googlegroups.com</updatecontact>
-</application>
+  <url type="homepage">https://cangjians.github.io/projects/ibus-cangjie/</url>
+  <update_contact>hklug@googlegroups.com</update_contact>
+</component>
--- a/data/quick.appdata.xml.in
+++ b/data/quick.appdata.xml.in
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<application>
-  <id type="inputmethod">quick.xml</id>
-  <licence>CC0</licence>
+<component type="inputmethod">
+  <id>quick.xml</id>
+  <metadata_license>CC0-1.0</metadata_license>
   <_name>Quick</_name>
   <_summary>Quick input method</_summary>
   <description>
@@ -13,6 +13,6 @@
        experience for people of the SAR by default, but provide useful options
        for others.</_p>
   </description>
-  <url type="homepage">http://cangjians.github.io/ibus-cangjie</url>
-  <updatecontact>hklug@googlegroups.com</updatecontact>
-</application>
+  <url type="homepage">https://cangjians.github.io/projects/ibus-cangjie/</url>
+  <update_contact>hklug@googlegroups.com</update_contact>
+</component>