Package: msi-keyboard
Version: 1.1-2
Tags: patch

Here is a patch for msi-keyboard to add Appstream metainfo XML
announcing the hardware handled by this package.

Including this information in the package will ensure programs mapping
hardware to packages using Appstream information, like the isenkram
package, will know that this package is useful on machines where the USB
IDs are discovered.

diff --git a/debian/copyright b/debian/copyright
index 69828c7..7402d29 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -13,6 +13,29 @@ Files: debian/*
 Copyright: 2015 Giulio Paci <giuliop...@gmail.com>
 License: BSD-3-clause
 
+Files: debian/msi-keyboard.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
 License: BSD-3-clause
  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
diff --git a/debian/msi-keyboard.install b/debian/msi-keyboard.install
index 7061c7e..6d6e917 100644
--- a/debian/msi-keyboard.install
+++ b/debian/msi-keyboard.install
@@ -1 +1,2 @@
 msi-keyboard /usr/bin
+debian/msi-keyboard.metainfo.xml usr/share/metainfo
diff --git a/debian/msi-keyboard.metainfo.xml b/debian/msi-keyboard.metainfo.xml
new file mode 100644
index 0000000..8e6845f
--- /dev/null
+++ b/debian/msi-keyboard.metainfo.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>com.github.bparker06.msi-keyboard</id>
+  <metadata_license>MIT</metadata_license>
+  <name>msi-keyboard</name>
+  <summary>command line tool to change MSI steelseries keyboards color 
setup</summary>
+  <description>
+    <p>This command line tool allows one to change the color setup of
+    MSI steelseries keyboards, found on some MSI laptop.  The tool
+    supports changing operational mode of keyboard backlight and
+    changing color and intensity of specific areas.
+    </p>
+  </description>
+  <provides>
+    <modalias>usb:v1770pFF00d*</modalias>
+  </provides>
+</component>

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to