Package: qflipper
Version: 1.3.3-1
Tags: patch
User: p...@hungry.com
Usertags: appstream-modalias

Here is a patch for qflipper 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 eda2553..0292776 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -45,6 +45,27 @@ Files: debian/*
 Copyright: 2022, Jakob Haufe <su...@debian.org>
 License: GPL-3+
 
+Files: debian/one.flipperzero.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen <p...@debian.org>
+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 are
diff --git a/debian/one.flipperzero.metainfo.xml 
b/debian/one.flipperzero.metainfo.xml
new file mode 100644
index 0000000..1c1a856
--- /dev/null
+++ b/debian/one.flipperzero.metainfo.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>one.flipperzero</id>
+  <metadata_license>MIT</metadata_license>
+  <name>qflipper</name>
+  <summary>Flipper Zero firmware updater</summary>
+  <description>
+    <p>qFlipper is a desktop application for updating Flipper Zero
+    firmware.</p>
+    <p>Features include:</p>
+    <ul>
+      <li>Update Flipper's firmware and supplemental data with a press
+      of one button</li>
+      <li>Repair a broken firmware installation</li>
+      <li>Stream Flipper's display and control it remotely</li>
+      <li>Install firmware from a .dfu file</li>
+      <li>Backup and restore settings, progress and pairing data</li>
+      <li>Command line interface</li>
+    </ul>
+  </description>
+  <provides>
+    <modalias>usb:v0483p5740d*</modalias>
+    <modalias>usb:v0483pDF11d*</modalias>
+    <modalias>usb:v303Ap40??d*</modalias>
+  </provides>
+</component>
diff --git a/debian/qflipper.install b/debian/qflipper.install
new file mode 100644
index 0000000..d89af00
--- /dev/null
+++ b/debian/qflipper.install
@@ -0,0 +1 @@
+debian/one.flipperzero.metainfo.xml usr/share/metainfo

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to