Package: gqrx-sdr Version: 2.15.9-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 hardware is discovered. The appstream metadata file can be checked using this command after package build: appstreamcli validate-tree --no-net --explain debian/gqrx-sdr I also added a cross reference between the metainfo file and the desktop file, to make the validator happy and ensure the XML content is used. diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..adeeef5 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,30 @@ +Description: Added AppStream metainfo XML with hardware provide info. + This allow isenkram to propose this package when the relevant hardware is + present. Also include a reference to the desktop file, to make the + Appstream validator happy. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-08-18 +--- +Index: gqrx-sdr-2.15.9/dk.gqrx.gqrx.appdata.xml +=================================================================== +--- gqrx-sdr-2.15.9.orig/dk.gqrx.gqrx.appdata.xml 2024-08-18 19:07:53.785473406 +0200 ++++ gqrx-sdr-2.15.9/dk.gqrx.gqrx.appdata.xml 2024-08-18 19:07:53.781473361 +0200 +@@ -14,6 +14,7 @@ + Gqrx supports many of the SDR hardware available, including Airspy, Funcube Dongles, rtl-sdr, HackRF and USRP devices. + </p> + </description> ++ <launchable type="desktop-id">dk.gqrx.gqrx.desktop</launchable> + <metadata_license>CC-BY-3.0</metadata_license> + <project_license>GPL-3.0</project_license> + <url type="bugtracker">https://github.com/gqrx-sdr/gqrx/issues</url> +@@ -30,4 +31,9 @@ + </screenshots> + <content_rating type="oars-1.1" /> + <update_contact>arg...@gmail.com</update_contact> ++ <provides> ++ <modalias>usb:v1D50p604Bd*</modalias> ++ <modalias>usb:v1D50p6089d*</modalias> ++ <modalias>usb:v1FC9p000Cd*</modalias> ++ </provides> + </component> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6245161 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen