Package: picotool Version: 1.1.2-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 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..4f57f0b --- /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 USB dongle is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-16 +--- +Index: picotool-salsa/com.github.raspberrypi.picotool.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ picotool-salsa/com.github.raspberrypi.picotool.metainfo.xml 2024-07-16 23:09:16.955343091 +0200 +@@ -0,0 +1,18 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component type="desktop"> ++ <id>com.github.raspberrypi.picotool</id> ++ <metadata_license>MIT</metadata_license> ++ <name>picotool</name> ++ <summary>interact with RP2040 devices or binaries</summary> ++ <description> ++ <p>Tool for interacting with a RP2040 device in BOOTSEL mode, or ++ with a RP2040 binary. It allows one to load programs onto the ++ device or save programs from flash to a file. It allows one to ++ verify device contents or reboot the device.</p> ++ </description> ++ <url type="homepage">https://github.com/philpem/printer-driver-ptouch</url> ++ <provides> ++ <modalias>usb:v2E8Ap0003d*</modalias> ++ <modalias>usb:v2E8Ap000ad*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index e0a578d..df67451 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ udev-uaccess.patch termwidth.patch 28.patch reproducible.patch +1000-appstream-metainfo.patch diff --git a/debian/picotool.install b/debian/picotool.install index 957922f..f215088 100644 --- a/debian/picotool.install +++ b/debian/picotool.install @@ -1 +1,2 @@ udev/99-picotool.rules /usr/lib/udev/rules.d/ +com.github.raspberrypi.picotool.metainfo.xml usr/share/metainfo -- Happy hacking Petter Reinholdtsen