Package: g15daemon Version: 1.9.5.3-14.1 Tags: patch User: [email protected] Usertags: appstream-modalias
Here is a draft patch to add Appstream metainfo XML announcing the hardware handled by this package. The USB IDs were fetched from ones listed in debian/g15daemon.udev. This is fixing to the lintian warning appstream-metadata-missing-modalias-provide. 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/g15daemon diff --git a/debian/g15daemon.install b/debian/g15daemon.install index a408406..40d5728 100644 --- a/debian/g15daemon.install +++ b/debian/g15daemon.install @@ -1,3 +1,4 @@ debian/tmp/usr/lib/*/g15daemon/*/plugins/*.so debian/tmp/usr/sbin/g15daemon debian/tmp/usr/share/g15daemon/splash/g15logo2.wbmp +usr/share/metainfo/net.sourceforge.g15daemon.metainfo.xml diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..14bdc13 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,50 @@ +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-09-03 +--- +Index: g15daemon-salsa/Makefile.am +=================================================================== +--- g15daemon-salsa.orig/Makefile.am 2024-09-03 11:54:10.028908417 +0000 ++++ g15daemon-salsa/Makefile.am 2024-09-03 11:54:10.024908374 +0000 +@@ -3,7 +3,11 @@ + SUBDIRS = libg15daemon_client g15daemon plugins + INCLUDES = -I$(top_srcdir)/libg15daemon_client -I$(top_srcdir)/g15daemon + +-EXTRA_DIST = debian contrib Documentation lang-bindings patches rpm README.usage FAQ LICENSE images README.Linux README.FreeBSD README.Solaris ++EXTRA_DIST = debian contrib Documentation lang-bindings patches rpm README.usage FAQ LICENSE images README.Linux README.FreeBSD README.Solaris \ ++ net.sourceforge.g15daemon.metainfo.xml ++ ++dist_metainfo_DATA = net.sourceforge.g15daemon.metainfo.xml ++metainfodir = $(datarootdir)/metainfo + + docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) + doc_DATA = FAQ README.usage README ChangeLog TODO AUTHORS NEWS LICENSE README.Linux README.FreeBSD README.Solaris +Index: g15daemon-salsa/net.sourceforge.g15daemon.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ g15daemon-salsa/net.sourceforge.g15daemon.metainfo.xml 2024-09-03 11:56:01.046116530 +0000 +@@ -0,0 +1,21 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>net.sourceforge.g15daemon</id> ++ <metadata_license>MIT</metadata_license> ++ <name>g15daemon</name> ++ <summary>LCD multiplexer for Logitech G15 Keyboard</summary> ++ <description> ++ <p>G15daemon provides multiple virtual screens for the LCD on the ++ Logitech G15 keyboard and Z10 speakers. It also allows the use of ++ all additional keys of G11 and G15 keyboards, even if the kernel ++ does not support them.</p> ++ </description> ++ <url type="homepage">https://sourceforge.net/projects/g15daemon/</url> ++ <provides> ++ <modalias>usb:v046Dp0A07d*</modalias> ++ <modalias>usb:v046DpC222d*</modalias> ++ <modalias>usb:v046DpC225d*</modalias> ++ <modalias>usb:v046DpC227d*</modalias> ++ <modalias>usb:v046DpC251d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index 2cb2326..318681a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ 06-fix-buffer-overflow.diff 07-reinit-on-any-error.diff 08-remove-unused-variables.diff +1000-appstream-metainfo.patch -- Happy hacking Petter Reinholdtsen

