Package: antpm Version: 1.20-1 Tags: patch User: p...@hungry.com Usertags: appstream-modalias
Here is a draft patch to add Appstream metainfo XML announcing the hardware handled by this package. The USB IDs were fetched from scripts/80-ant-stick.rules. 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/antpm diff --git a/debian/antpm.install b/debian/antpm.install new file mode 100644 index 0000000..38a88eb --- /dev/null +++ b/debian/antpm.install @@ -0,0 +1 @@ +com.github.ralovich.antpm.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..dbb481e --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,46 @@ +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-22 +--- +Index: antpm-salsa/com.github.ralovich.antpm.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ antpm-salsa/com.github.ralovich.antpm.metainfo.xml 2024-08-22 22:07:39.279311775 +0200 +@@ -0,0 +1,34 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>com.github.ralovich.antpm</id> ++ <metadata_license>MIT</metadata_license> ++ <name>antpm</name> ++ <summary>ANT+ information retrieval client for Garmin GPS products</summary> ++ <description> ++ <p>This software uses the Garmin ANT+ proprietary USB keys and ++ communication protocol to retrieve information (such as GPS ++ traces) from some Garmin Forerunner watches such as Forerunner 405 ++ and 310XT.</p> ++ ++ <p>The underlying ANT+minus implements the ANT/ANT+/ANT-FS ++ protocols to provide these tools: garmin-ant-downloader, ++ antpm-downloader, antpm-fit2gpx, and antpm-usbmon2ant.</p> ++ ++ <p>ANT+minus is a userspace implementation of a wire protocol ++ similar to the ANT/ANT+/ANT-FS protocols. The goal is to be able ++ to communicate with any ANT capable device in order to ++ e.g. retrieve sports tracks. The C++ implementation is currently ++ available under both Linux and win. Communication with watches ++ other than the 310XT might work, but are untested. Please report ++ your experience to help improving the software.</p> ++ ++ <p>The software was originally named "gant" but renamed when packaged ++ to avoid confusion with existing Java software.</p> ++ </description> ++ <url type="homepage">https://github.com/ralovich/antpm</url> ++ <provides> ++ <modalias>usb:v0FCFp1004d*</modalias> ++ <modalias>usb:v0FCFp1008d*</modalias> ++ <modalias>usb:v0FCFp1009d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index 67f9505..f38833e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01-include-cstdint +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen