Bug#1078746: mkgmap: Add Appstream metainfo announcing HW support

Petter Reinholdtsen pere at hungry.com
Thu Aug 15 09:46:13 BST 2024


Package: mkgmap
Version: 0.0.0+svn4905-1
Tags: patch
User: pere at 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
hardware is discovered.

The appstream metadata file can be checked using this command after
package build:

  appstreamcli validate-tree  --no-net --explain debian/mkgmap

diff --git a/debian/install b/debian/install
index 57b03f5..5c685f3 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1,2 @@
 dist/mkgmap.jar usr/share/mkgmap/
+org.mkgmap.cli.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..ecf43a0
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,36 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the relevant hardware is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-08-15
+---
+Index: mkgmap-salsa/org.mkgmap.cli.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ mkgmap-salsa/org.mkgmap.cli.metainfo.xml   2024-08-15 10:33:49.510639413 +0200
+@@ -0,0 +1,24 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++  <id>org.mkgmap.cli</id>
++  <metadata_license>MIT</metadata_license>
++  <name>mkgmap</name>
++  <summary>Generate Garmin maps from OpenStreetMap data</summary>
++  <description>
++    <p>This program converts OpenStreetMap data into a map that
++    can be loaded onto compatible Garmin GPS units.</p>
++    <p>Main features:</p>
++    <ul>
++    <li>Full control which OSM data is integrated into the map (style system)</li>
++    <li>Full control how POIs, streets and all other elements are displayed
++    (TYP file compiler)</li>
++    <li>Full address search support</li>
++    <li>Routing support</li>
++    <li>Many options for fine control over the map creation process</li>
++    </ul>
++  </description>
++  <url type="homepage">https://www.mkgmap.org.uk</url>
++  <provides>
++    <modalias>usb:v091Ep0003d*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 46a7f4e..f588266 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 build_xml.patch
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-grass-devel mailing list