Package: xserver-xorg-input-evdev Version: 1:2.10.6-2 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 hardware is discovered. The appstream metadata file can be checked using this command after package build: appstreamcli validate-tree --no-net --explain debian/xserver-xorg-input-evdev diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..faa5700 --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,49 @@ +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-08-04 +--- +Index: xserver-xorg-input-evdev-2.10.6/Makefile.am +=================================================================== +--- xserver-xorg-input-evdev-2.10.6.orig/Makefile.am 2024-08-04 22:04:38.041125592 +0200 ++++ xserver-xorg-input-evdev-2.10.6/Makefile.am 2024-08-04 22:04:38.037125555 +0200 +@@ -25,6 +25,11 @@ + SUBDIRS = src man include + MAINTAINERCLEANFILES = ChangeLog INSTALL + ++EXTRA_DIST = org.x.driver.input.evdev.metainfo.xml ++ ++metainfodir = $(datarootdir)/metainfo ++dist_metainfo_DATA = org.x.driver.input.evdev.metainfo.xml ++ + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = xorg-evdev.pc + +Index: xserver-xorg-input-evdev-2.10.6/org.x.driver.input.evdev.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ xserver-xorg-input-evdev-2.10.6/org.x.driver.input.evdev.metainfo.xml 2024-08-04 22:04:51.741252354 +0200 +@@ -0,0 +1,21 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>org.x.driver.input.evdev</id> ++ <metadata_license>MIT</metadata_license> ++ <name>tucnak</name> ++ <summary>X.Org X server -- evdev input driver</summary> ++ <description> ++ <p>This package provides the driver for input devices using evdev, ++ the Linux kernel's event delivery mechanism. This driver allows ++ for multiple keyboards and mice to be treated as separate input ++ devices.</p> ++ <p>This package is built from the X.org xf86-input-evdev driver ++ module.</p> ++ </description> ++ <url type="homepage">https://www.x.org</url> ++ <provides> ++ <modalias>lkmodule:usbtouchscreen</modalias> ++ <modalias>usb:v05A4p9999d*</modalias> ++ <modalias>usb:v0EEFp0001d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index cad00d5..5a56ae3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ # placeholder debian-1:2.10.6-2.patch +1000-appstream-metainfo.patch diff --git a/debian/xserver-xorg-input-evdev.install b/debian/xserver-xorg-input-evdev.install index e393ea7..1ba496c 100644 --- a/debian/xserver-xorg-input-evdev.install +++ b/debian/xserver-xorg-input-evdev.install @@ -1,3 +1,4 @@ usr/lib/xorg/modules/input/*.so usr/share/man usr/share/X11/xorg.conf.d/10-evdev.conf +usr/share/metainfo/org.x.driver.input.evdev.metainfo.xml -- Happy hacking Petter Reinholdtsen