Package: bmusb Version: 0.7.7-1 Tags: patch
Here is a patch for bmusb to add Appstream metainfo XML announcing the hardware handled by this package. I was a bit unsure if it should be attached to the library or -dev package, but concluded that the -dev package seem more useful for endusers than the library package on its own. 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. diff --git a/bmusb.metainfo.xml b/bmusb.metainfo.xml new file mode 100644 index 0000000..341fd90 --- /dev/null +++ b/bmusb.metainfo.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component> + <id>no.gunderson.bmusb</id> + <metadata_license>MIT</metadata_license> + <name>bmusb</name> + <summary>userspace driver for Blackmagic USB3 video capture cards</summary> + <description> + <p>bmusb is a userspace driver for Blackmagic's USB3 series of + video capture and playback cards (although only the capture part + is currently supported), in particular the Intensity Shuttle + (HDMI) and UltraStudio SDI cards. These are not currently served + by Blackmagic's own Linux drivers.</p> + + <p>bmusb is not API- or ABI-compatible with Blackmagic's + drivers.</p> + </description> + <provides> + <modalias>usb:v1EDBpBD3Bd*</modalias> + <modalias>usb:v1EDBpBD4Fd*</modalias> + </provides> +</component> diff --git a/debian/libbmusb-dev.install b/debian/libbmusb-dev.install index b62ef39..a8fe4a0 100644 --- a/debian/libbmusb-dev.install +++ b/debian/libbmusb-dev.install @@ -2,3 +2,4 @@ usr/lib/*/*.so usr/lib/*/*.a usr/lib/*/pkgconfig/*.pc usr/include/bmusb/*.h +usr/share/metainfo/bmusb.metainfo.xml diff --git a/debian/libbmusb6.lintian-overrides b/debian/libbmusb6.lintian-overrides new file mode 100644 index 0000000..eab9833 --- /dev/null +++ b/debian/libbmusb6.lintian-overrides @@ -0,0 +1,2 @@ +# The metainfo XML is in the -dev package +libbmusb6: appstream-metadata-missing-modalias-provide usr/lib/udev/rules.d/70-bmusb.rules --- bmusb-0.7.7.orig/Makefile 2024-04-28 06:04:57.000000000 +0000 +++ bmusb-0.7.7/Makefile 2024-04-28 06:06:31.387282170 +0000 @@ -9,6 +9,7 @@ PREFIX := /usr DEB_MULTIARCH_TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) LIBDIR := $(PREFIX)/lib/$(DEB_MULTIARCH_TRIPLET) +METAINFODIR := $(PREFIX)/share/metainfo UDEVDIR ?= $(shell $(PKG_CONFIG) --variable udevdir udev) UDEVDIR ?= /lib/udev LIB := libbmusb.a @@ -44,6 +45,7 @@ $(DESTDIR)$(LIBDIR) \ $(DESTDIR)$(LIBDIR)/pkgconfig \ $(DESTDIR)$(PREFIX)/include/bmusb \ + $(DESTDIR)$(METAINFODIR) \ $(DESTDIR)$(UDEVDIR)/rules.d $(INSTALL) -m 755 $(LIB) $(SOLIB) $(DESTDIR)$(LIBDIR) $(LN) -sf $(SOLIB) $(DESTDIR)$(LIBDIR)/$(SONAME) @@ -52,5 +54,6 @@ sed 's/@DEB_MULTIARCH_TRIPLET@/$(DEB_MULTIARCH_TRIPLET)/' < bmusb.pc > $(DESTDIR)$(LIBDIR)/pkgconfig/bmusb.pc chmod 0644 $(DESTDIR)$(LIBDIR)/pkgconfig/bmusb.pc chown root:root $(DESTDIR)$(LIBDIR)/pkgconfig/bmusb.pc + $(INSTALL) -m 644 bmusb.metainfo.xml $(DESTDIR)$(METAINFODIR) $(INSTALL) -m 644 70-bmusb.rules $(DESTDIR)$(UDEVDIR)/rules.d -- Happy hacking Petter Reinholdtsen