XPost: linux.debian.bugs.dist
From:
[email protected]
Package: soapysdr-module-hackrf
Version: 0.3.3-5
Tags: patch
User:
[email protected]
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/soapysdr-module-hackrf
The appstream metainfo is only added to the non-versioned package as it
seem like a more useful generic package to suggest for installation when
the handled hardware is present.
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..3acd5f3
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,65 @@
+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-07
+---
+Index: soapyhackrf-salsa/com.github.pothosware.SoapyHackRF.metainfo.xml +===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ soapyhackrf-salsa/com.github.pothosware.SoapyHackRF.metainfo.xml 2024-08-07 08:50:05.019064163 +0200
+@@ -0,0 +1,53 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++ <id>com.github.pothosware.SoapyHackRF</id>
++ <metadata_license>MIT</metadata_license>
++ <name>xserver-xorg-input-wacom</name>
++ <summary>HackRF device support for SoapySDR (default version)</summary>
++ <description>
++ <p>The Soapy HackRF project provides a SoapySDR hardware support
++ module.