Bug#838788: printer-driver-ptouch: Please announce supported hardware using AppStream
Control: tags -1 + patch
Here is a patch based on the latest git repo on salsa to fix it.
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..e1e46f0
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,41 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB printer is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-15
+---
+--- ptouch-driver-1.7.orig/Makefile.am
++++ ptouch-driver-1.7/Makefile.am
+@@ -110,8 +110,12 @@ options_DATA = $(addprefix generated/,
+ EXTRA_DIST = Doxyfile $(PACKAGE).spec.in \
+ $(PACKAGE)-foomatic.spec.in \
+ $(DRIVERS) $(PRINTERS) $(OPTIONS) \
++ com.github.philpem.printer-driver-ptouch.metainfo.xml \
+ foomaticalize
+
++dist_metainfo_DATA = com.github.philpem.printer-driver-ptouch.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
++
+ RPMBUILD = rpmbuild -ba
+ RPMSOURCESDIR = $(HOME)/src/SOURCES
+
+--- /dev/null
++++ ptouch-driver-1.7/com.github.philpem.printer-driver-ptouch.metainfo.xml
+@@ -0,0 +1,16 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++ <id>com.github.philpem.printer-driver-ptouch</id>
++ <metadata_license>MIT</metadata_license>
++ <project_license>GPL-2.0+</project_license>
++ <name>printer-driver-ptouch</name>
++ <summary>printer driver Brother P-touch label printers</summary>
++ <description>
++ <p>The ptouch driver is an open source driver for the Brother
++ P-touch label printers, from the QL-* and PT-* series.</p>
++ </description>
++ <url type="homepage">https://github.com/philpem/printer-driver-ptouch</url>
++ <provides>
++ <modalias>usb:v04F9p2015d*</modalias>
++ </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index b1ddfd8..298d0e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Fix-Brother-QL-600.xml.patch
+1000-appstream-metainfo.patch
--
Happy hacking
Petter Reinholdtsen
Reply to: