Control: tags -1 + patch Here is a patch implementing the proposed change.
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..42c55fd --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,36 @@ +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-18 +--- +Index: tp-smapi-salsa/com.github.linux_thinkpad.tp_smapi.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ tp-smapi-salsa/com.github.linux_thinkpad.tp_smapi.metainfo.xml 2024-08-18 17:24:05.609650183 +0200 +@@ -0,0 +1,24 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>com.github.linux_thinkpad.tp_smapi</id> ++ <metadata_license>MIT</metadata_license> ++ <name>tp-smapi-dkms</name> ++ <summary>ThinkPad hardware/firmware access modules source - dkms version</summary> ++ <description> ++ <p>The tp_smapi kernel module exposes some features of the ++ ThinkPad hardware/firmware via a sysfs interface. Currently, the ++ main implemented functionality is control of battery charging and ++ extended battery status. The underlying hardware interfaces are ++ SMAPI and direct access to the embedded controller.</p> ++ ++ <p>This package also brings the source for an improved version of ++ HDAPS which should work on newer ThinkPads too (the stock kernel ++ version does not).</p> ++ ++ <p>This package contains the source to be built with dkms.</p> ++ </description> ++ <url type="homepage">https://github.com/linux-thinkpad/tp_smapi</url> ++ <provides> ++ <modalias>dmi:*:pn*:pvrThinkPad*:rvn*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6245161 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +1000-appstream-metainfo.patch diff --git a/debian/tp-smapi-dkms.install b/debian/tp-smapi-dkms.install new file mode 100644 index 0000000..be3322f --- /dev/null +++ b/debian/tp-smapi-dkms.install @@ -0,0 +1 @@ +com.github.linux_thinkpad.tp_smapi.metainfo.xml usr/share/metainfo -- Happy hacking Petter Reinholdtsen