Package: firmware-microbit-micropython Version: 1.0.1-4 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 USB IDs are discovered. diff --git a/debian/firmware-microbit-micropython.install b/debian/firmware-microbit-micropython.install index 25c4ec8..5735406 100644 --- a/debian/firmware-microbit-micropython.install +++ b/debian/firmware-microbit-micropython.install @@ -1 +1,2 @@ build/firmware.hex usr/share/firmware-microbit-micropython +com.github.bbcmicrobit.micropython.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..4dbf861 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,34 @@ +Description: Added AppStream metainfo with hardware provides. + Allow mapping from hardware to package. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-14 +--- /dev/null 2024-07-12 16:43:45.219502469 +0200 ++++ b/com.github.bbcmicrobit.micropython.metainfo.xml 2024-07-14 20:53:05.559971391 +0200 +@@ -0,0 +1,26 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>com.github.bbcmicrobit.micropython</id> ++ <metadata_license>MIT</metadata_license> ++ <name>firmware-microbit-micropython</name> ++ <summary>MicroPython runtime for the BBC micro:bit</summary> ++ <description> ++ <p>This package provides a binary firmware file for the BBC ++ micro:bit small board computer (SBC), containing the MicroPython ++ runtime.</p> ++ ++ <p>It is suggested that a dedicated flashing tool (e.g. uflash) is ++ used to upload the firmware and Python scripts to the micro:bit ++ device.</p> ++ ++ <p>The uflash utility (package: python3-uflash) uses the ++ MicroPython runtime provided in this package as the default ++ firmware to flash to the micro:bit.</p> ++ ++ <p>This package contains the MicroPython runtime for the BBC ++ micro:bit.</p> ++ </description> ++ <provides> ++ <modalias>usb:v0D28p0204d*</modalias> ++ </provides> ++</component> -- Happy hacking Petter Reinholdtsen