summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-03-17 01:37:46 -0400
committerPatrick Griffis <tingping@tingping.se>2018-03-17 01:37:46 -0400
commitda56297c5ac0a425cd2eaaa8091dc83621ce3c38 (patch)
tree30274f30f7a3d0bd8915ff47a2e47133642b9e10
parent5d8b4719a8f87f6687c4fad2c96836f8c9a325c8 (diff)
build: Correctly set plugin licenses
-rw-r--r--data/misc/io.github.Hexchat.Plugin.metainfo.xml.in2
-rw-r--r--data/misc/meson.build16
2 files changed, 9 insertions, 9 deletions
diff --git a/data/misc/io.github.Hexchat.Plugin.metainfo.xml.in b/data/misc/io.github.Hexchat.Plugin.metainfo.xml.in
index 552570b8..b4412ce2 100644
--- a/data/misc/io.github.Hexchat.Plugin.metainfo.xml.in
+++ b/data/misc/io.github.Hexchat.Plugin.metainfo.xml.in
@@ -5,7 +5,7 @@
   <name>@NAME@ Plugin</name>
   <summary>@SUMMARY@</summary>
   <url type="homepage">https://hexchat.github.io/</url>
-  <project_license>GPL-2.0+</project_license>
+  <project_license>@LICENSE@</project_license>
   <metadata_license>CC0-1.0</metadata_license>
   <update_contact>tingping_AT_fedoraproject.org</update_contact>
 </component>
\ No newline at end of file
diff --git a/data/misc/meson.build b/data/misc/meson.build
index 26b037ce..6cbd9f91 100644
--- a/data/misc/meson.build
+++ b/data/misc/meson.build
@@ -74,46 +74,46 @@ if get_option('with-plugin')
   # FIXME: These should all get translated somewhere
   if get_option('with-checksum')
     plugin_metainfo += [
-      ['Checksum', 'Calculates a checksum for all sent and recieved DCC files']
+      ['Checksum', 'Calculates a checksum for all sent and recieved DCC files', 'MIT']
     ]
   endif
 
   if get_option('with-fishlim')
     plugin_metainfo += [
-      ['Fishlim', 'Allows setting a key for encrypted conversations']
+      ['Fishlim', 'Allows setting a key for encrypted conversations', 'MIT AND GPL-2.0+']
     ]
   endif
 
   if get_option('with-lua') != 'false'
     plugin_metainfo += [
-      ['Lua', 'Provides a scripting interface in Lua']
+      ['Lua', 'Provides a scripting interface in Lua', 'MIT']
     ]
   endif
 
   if get_option('with-perl')
     plugin_metainfo += [
-      ['Perl', 'Provides a scripting interface in Perl']
+      ['Perl', 'Provides a scripting interface in Perl', 'GPL-2.0+']
     ]
   endif
 
   if get_option('with-python') != 'false'
     plugin_metainfo += [
-      ['Python', 'Provides a scripting interface in Python']
+      ['Python', 'Provides a scripting interface in Python', 'GPL-2.0+']
     ]
   endif
 
   if get_option('with-sysinfo')
     plugin_metainfo += [
-      ['Sysinfo', 'Adds command to display system information']
+      ['Sysinfo', 'Adds command to display system information', 'GPL-2.0+']
     ]
   endif
 
   foreach metainfo : plugin_metainfo
     name = metainfo[0]
-    desc = metainfo[1]
     conf = configuration_data()
     conf.set('NAME', name)
-    conf.set('SUMMARY', desc)
+    conf.set('SUMMARY', metainfo[1])
+    conf.set('LICENSE', metainfo[2])
 
     configure_file(
       input: 'io.github.Hexchat.Plugin.metainfo.xml.in',