#1070778 indi-armadillo-platypus: Add Appstream metainfo announcing HW support

Package:
indi-armadillo-platypus
Source:
indi-armadillo-platypus
Description:
INDI driver for Lunatico Astronomia Armadillo and Platypus
Submitter:
Petter Reinholdtsen
Date:
2024-08-24 07:45:03 UTC
Severity:
normal
Tags:
#1070778#5
Date:
2024-05-08 22:34:07 UTC
From:
To:
Here is a patch for indi-armadillo-platypus 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.  It will also solve the
appstream-metadata-missing-modalias-provide lintian issue.

diff --git a/debian/com.github.indilib.indi-3rdparty.metainfo.xml b/debian/com.github.indilib.indi-3rdparty.metainfo.xml
new file mode 100644
index 0000000..48bfdf6
--- /dev/null
+++ b/debian/com.github.indilib.indi-3rdparty.metainfo.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>com.github.indilib.indi-3rdparty</id>
+  <metadata_license>MIT</metadata_license>
+  <name>indi-armadillo-platypus</name>
+  <summary>INDI driver for Lunatico Astronomia Armadillo and Platypus</summary>
+  <description>
+    <p>This package contains the INDI driver for Armadillo and
+    Playtypus from Lunatico Astronomia.</p>
+    <p>This driver is compatible with any INDI client such as KStars
+    or Xephem.</p>
+  </description>
+  <provides>
+    <modalias>usb:v16C0p09B1d*</modalias>
+  </provides>
+</component>
diff --git a/debian/indi-armadillo-platypus.install b/debian/indi-armadillo-platypus.install
new file mode 100644
index 0000000..ee3cc69
--- /dev/null
+++ b/debian/indi-armadillo-platypus.install
@@ -0,0 +1 @@
+debian/com.github.indilib.indi-3rdparty.metainfo.xml usr/share/metainfo

#1070778#10
Date:
2024-05-08 22:44:08 UTC
From:
To:
Hi Petter,

thanks a lot for this patch, the Appstream stuff is like a book of seven
seals for me.

There are lots of drivers in this repository, distributed over several
packages. Shouldn't there be a unique id for each package?

   Thorsten

#1070778#15
Date:
2024-05-09 13:54:49 UTC
From:
To:
[Thorsten Alteholz]

Yes, most likely.  I just had a look at the homepage url in d/control
and synthesized something I hoped was unique.  I did not know there were
several packages with the same homepage url.  Please make a better ID.
The only requirement is reverse DNS notation and uniqueness.  Would be
nice if it is stable and shared across Linux distributions too, but I do
not thing anyone care about this at the moment. :)

#1070778#20
Date:
2024-08-24 07:31:36 UTC
From:
To:
I had a look, and in debian/control of
<URL: https://salsa.debian.org/debian-astro-team/indi-armadillo-platypus.git >
there is only one binary package listed.  Which other packages are you
talking about?

Note, to validate the appstream content you can use this oneliner after
building the package:

  appstreamcli validate-tree  --no-net --explain debian/indi-armadillo-platypus