Package: s3switch
Version: 0.1-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.

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 PCI
IDs are discovered.

--- /dev/null   2025-02-15 09:10:30.971989512 +0100
+++ org.freedesktop.people.tormod.s3switch.metainfo.xml 2025-03-03 
09:41:07.424974507 +0100
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>org.freedesktop.people.tormod.s3switch</id>
+  <metadata_license>MIT</metadata_license>
+  <name>s3switch</name>
+  <summary>Manage the output device on S3 Savage chips</summary>
+  <description>
+    <p>
+      Depending on the Savage chip this utility can be used to switch
+      between LCD, CRT and TV output. Additionally one can choose
+      between NTSC, NTSCJ and pal TV signal format.
+    </p>
+  </description>
+  <url type="homepage">http://people.freedesktop.org/~tormod/s3switch/</url>
+  <provides>
+    <modalias>usb:v5333p8a25d*</modalias>
+    <modalias>usb:v1106p8a25d*</modalias>
+  </provides>
+</component>
diff --git a/debian/dirs b/debian/dirs
index e772481..7c9e67d 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -1 +1,2 @@
 usr/bin
+usr/share/metainfo
diff --git a/debian/rules b/debian/rules
index 006c328..85e87ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,6 +50,7 @@ install: build
 #      $(MAKE) install DESTDIR=`pwd`/debian/s3switch
        ${INSTALL_PROGRAM} s3switch `pwd`/debian/s3switch/usr/bin
        cp s3switch.1x s3switch.8
+       cp org.freedesktop.people.tormod.s3switch.metainfo.xml 
/usr/share/metainfo
 
 # Build architecture-independent files here.
 binary-indep: build install

Note, I did not add all supported PCI IDs.  Is there a simple way to get
the complete list of supported PCI IDs?

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to