Bug#1077365: kde-config-tablet: Add Appstream metainfo announcing HW support
Package: kde-config-tablet
Version: 3.2.0-4
Tags: patch
User: pere@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/kde-config-tablet
diff --git a/debian/kde-config-tablet.install b/debian/kde-config-tablet.install
new file mode 100644
index 0000000..b2e6164
--- /dev/null
+++ b/debian/kde-config-tablet.install
@@ -0,0 +1 @@
+org.kde.projects.extragear.wacomtablet.metainfo.xml usr/share/metainfo
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..6822c5b
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,34 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when a ethernet card is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-20
+---
+Index: wacomtablet-3.2.0/org.kde.projects.extragear.wacomtablet.metainfo.xml
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ wacomtablet-3.2.0/org.kde.projects.extragear.wacomtablet.metainfo.xml 2024-07-28 20:31:35.117394598 +0200
+@@ -0,0 +1,22 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++ <id>org.kde.projects.extragear.wacomtablet</id>
++ <metadata_license>MIT</metadata_license>
++ <name>kde-config-tablet</name>
++ <summary>implements a KDE configuration GUI for the Wacom drivers</summary>
++ <description>
++ <p>KDE Wacom tablet KCModule</p>
++ <p>This module implements a GUI for the Wacom Linux Drivers and
++ extends it with profile support to handle different button / pen
++ layouts per profile.</p>
++ <p>For hardware support have a look at
++ http://www.linuxwacom.sourceforge.net</p>
++ <p>All tablets can be set up as long as they are found via
++ xorg.conf or HAL configuration.</p>
++ </description>
++ <url type="homepage">http://projects.kde.org/projects/extragear/base/wacomtablet</url>
++ <launchable type="desktop-id">kde_wacom_tabletfinder.desktop</launchable>
++ <provides>
++ <modalias>lkmodule:wacom</modalias>
++ </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index ae99cb1..caf3f40 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
upstream_Fix-build-with-Qt-5.15.patch
upstream_Add-missing-include.patch
+1000-appstream-metainfo.patch
--
Happy hacking
Petter Reinholdtsen
Reply to: