Bug#1076340: dolphin-emu: Add Appstream metainfo announcing HW support

Petter Reinholdtsen pere at hungry.com
Sun Jul 14 19:19:09 BST 2024


Package: dolphin-emu
Version: 5.0-19870+dfsg-1
Tags: patch
User: pere at 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 USB
IDs are discovered.

I only added the USB ids listed in Data/51-usb-device.rules.  I notice
several more are listed in Source/Core/UICommon/USBUtils.cpp, but do not
know if their existence should suggest an installation of this package.

diff --git a/debian/dolphin-emu.install b/debian/dolphin-emu.install
index 4f906df0..9bc65156 100644
--- a/debian/dolphin-emu.install
+++ b/debian/dolphin-emu.install
@@ -1,4 +1,5 @@
 Data/51-usb-device.rules /usr/lib/udev/rules.d
+org.dolphin-emu.metainfo.xml /usr/share/metainfo
 usr/games/dolphin-emu
 usr/games/dolphin-emu-nogui
 usr/games/dolphin-tool
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 00000000..ac4d25a5
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,30 @@
+Description: Added AppStream metainfo with hardware provides.
+ Allow mapping from hardware to package.
+Author: Petter Reinholdtsen
+Bug-Debian: https://bugs.debian.org/?
+Forwarded: no
+Last-Update: 2024-07-14
+---
+Index: dolphin-emu-salsa/org.dolphin-emu.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ dolphin-emu-salsa/org.dolphin-emu.metainfo.xml     2024-07-14 20:11:38.029350170 +0200
+@@ -0,0 +1,18 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++  <id>org.dolphin-emu</id>
++  <metadata_license>MIT</metadata_license>
++  <name>dolphin-emu</name>
++  <summary>Gamecube and Wii emulator</summary>
++  <description>
++    <p>Dolphin is an emulator for two recent Nintendo video game
++    consoles: the GameCube and the Wii. It allows PC gamers to enjoy
++    games for these two consoles in full HD (1080p) with several
++    enhancements: compatibility with all PC controllers, turbo speed,
++    networked multiplayer, and even more.</p>
++  </description>
++  <provides>
++    <modalias>usb:v057Ep0306d*</modalias>
++    <modalias>usb:v057Ep0330d*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 48f89b9e..6e2b91a7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ xxhash.diff
 zlib.diff
 implot.patch
 mgba_videosize.patch
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-games-devel mailing list