Add Appstream metainfo announcing HW support


Package: virtualbox-guest-x11
Version: 7.0.20-dfsg-1
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.  It is untested, as I could not get the source
to build on Bookworm.

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
relevant hardware is discovered.

The appstream metadata file can be checked using this command after
package build:

  appstreamcli validate-tree  --no-net --explain debian/virtualbox-guest-x11

diff --git a/debian/patches/1000-appstream-metainfo.patch 
b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 000000000..e29a0282b
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,33 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB dongle is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-20
+---
+Index: virtualbox/org.virtualbox.guest.x11.metainfo.xml
+===================================================================
+--- /dev/null
++++ virtualbox/org.virtualbox.guest.x11.metainfo.xml
+@@ -0,0 +1,21 @@
++
++
++  org.virtualbox.guest.x11
++  MIT
++  virtualbox-guest-x11
++  x86 virtualization solution - X11 guest utilities
++  
++    

VirtualBox is a free x86 virtualization solution allowing a ++ wide range of x86 operating systems such as Windows, DOS, BSD or ++ Linux to run on a Linux system.

++ ++

This package provides the X11 guest utilities for ++ VirtualBox. These utilities are meant to be run inside the virtual ++ machine. They provide closer integration and improve the ++ interactive performance.

++
++ https://www.virtualbox.org ++ ++ pci:v000080EEd0000BEEFsv* ++ ++
diff --git a/debian/patches/series b/debian/patches/series index 07cab0781..fe1a4cdd7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ 35-libvdeplug-soname.patch 36-fix-vnc-version-string.patch 37-do-not-run-if-not-in-vm.patch +1000-appstream-metainfo.patch diff --git a/debian/virtualbox-guest-x11.install b/debian/virtualbox-guest-x11.install index 9eb887007..5cd260fef 100644 --- a/debian/virtualbox-guest-x11.install +++ b/debian/virtualbox-guest-x11.install @@ -1,3 +1,4 @@ out/bin/additions/VBoxClient /usr/bin src/VBox/Additions/x11/Installer/x11config.pl /usr/share/virtualbox src/VBox/Additions/x11/Installer/98vboxadd-xclient /etc/X11/Xsession.d +org.virtualbox.guest.x11.metainfo.xml usr/share/metadata -- Happy hacking Petter Reinholdtsen

Read more here: Source link