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

Here is a patch 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/mtkbabel.install b/debian/mtkbabel.install
new file mode 100644
index 0000000..d104793
--- /dev/null
+++ b/debian/mtkbabel.install
@@ -0,0 +1 @@
+org.rigacci.appunti.gps_logger_i_blue_747.metainfo.xml usr/share/metainfo
diff --git a/debian/patches/1000-appstream-metainfo.patch 
b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..325fa2b
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,42 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB dongle is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-16
+---
+Index: mtkbabel-0.8.3.1/org.rigacci.appunti.gps_logger_i_blue_747.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ mtkbabel-0.8.3.1/org.rigacci.appunti.gps_logger_i_blue_747.metainfo.xml    
2024-07-16 11:31:25.778928238 +0200
+@@ -0,0 +1,30 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++  <id>org.rigacci.appunti.gps_logger_i_blue_747</id>
++  <metadata_license>MIT</metadata_license>
++  <name>mtkbabel</name>
++  <summary>manage i-Blue 747 and compatible GPS data loggers</summary>
++  <description>
++    <p>MTKBabel is a command line program to operate the i-Blue 747
++    GPS data logger.  It should work also with other GPS devices based
++    on the MediaTek MTK chipset.  For instance the Holux M-241 GPS
++    data logger, the Holux M-1200E, as well as the 747 A+ GPS Trip
++    Recorder, are also known to work.</p>
++    <p>The main features are:</p>
++    <ul>
++      <li>Command line interface</li>
++      <li>Save data log in GPX and raw binary format</li>
++      <li>If required retrieve all the data, also the old one being
++      overlapped</li>
++      <li>Change logging criteria: time, distance, speed</li>
++      <li>Change log format</li>
++      <li>START/STOP logging</li>
++      <li>Set OVERLAP or STOP method on memory full</li>
++      <li>Erase the internal memory</li>
++    </ul>
++  </description>
++  <url 
type="homepage">http://www.rigacci.org/wiki/doku.php/doc/appunti/hardware/gps_logger_i_blue_747</url>
++  <provides>
++    <modalias>usb:v0E8Dp3329d*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index f147c6c..f0ffb46 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01-retry-on-out-of-order-packets.patch
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to