Package: bluez-firmware Version: 1.2-8 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 USB IDs are discovered. diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..f9d20c6 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,45 @@ +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-17 +--- +Index: bluez-firmware-salsa/Makefile.am +=================================================================== +--- bluez-firmware-salsa.orig/Makefile.am 2024-07-17 19:21:16.148904779 +0200 ++++ bluez-firmware-salsa/Makefile.am 2024-07-17 19:21:16.144904740 +0200 +@@ -11,6 +11,7 @@ + st/STLC2500_R4_02_04.ptc + + EXTRA_DIST = $(firmware_DATA) \ ++ org.bluez.firmware.metainfo.xml \ + broadcom/BCM2033-2.13-FW.bin \ + broadcom/BCM2033-2.14-FW.bin \ + broadcom/BCM2033-2.15-FW.bin \ +@@ -22,3 +23,6 @@ + MAINTAINERCLEANFILES = Makefile.in \ + aclocal.m4 configure config.h.in \ + depcomp missing install-sh mkinstalldirs ++ ++dist_metainfo_DATA = org.bluez.firmware.metainfo.xml ++metainfodir = $(datarootdir)/metainfo +Index: bluez-firmware-salsa/org.bluez.firmware.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ bluez-firmware-salsa/org.bluez.firmware.metainfo.xml 2024-07-17 19:21:54.913286397 +0200 +@@ -0,0 +1,14 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>org.bluez.firmware</id> ++ <metadata_license>MIT</metadata_license> ++ <name>bluez-firmware</name> ++ <summary>Firmware for Bluetooth devices</summary> ++ <description> ++ <p>This firmware is required for operation of Bluetooth dongles ++ based on the Broadcom BCM203x and Raspberry Pi chipset.</p> ++ </description> ++ <provides> ++ <modalias>usb:v0C10p0000d**</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..42e8b1a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen

