Control: tags -1 + patch

Here is the proposal as a patch.

diff --git a/debian/bluez.install b/debian/bluez.install
index 3826f0d3a..c2408db45 100644
--- a/debian/bluez.install
+++ b/debian/bluez.install
@@ -28,3 +28,4 @@ ${env:deb_systemdsystemunitdir}/bluetooth.service
 usr/share/dbus-1/system.d/bluetooth.conf
 usr/share/dbus-1/system-services/org.bluez.service
 usr/share/zsh/site-functions/_bluetoothctl
+usr/share/metadata/org.bluez.tools.metainfo.xml
diff --git a/debian/patches/1000-appstream-metainfo.patch 
b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 000000000..c45088ebf
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,55 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the hardware is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-31
+---
+Index: bluez-salsa/Makefile.am
+===================================================================
+--- bluez-salsa.orig/Makefile.am       2024-07-31 23:28:42.681571962 +0200
++++ bluez-salsa/Makefile.am    2024-07-31 23:28:42.677571922 +0200
+@@ -14,7 +14,8 @@
+ 
+ CLEANFILES =
+ 
+-EXTRA_DIST =
++EXTRA_DIST = \
++      org.bluez.tools.metainfo.xml
+ 
+ pkglibexecdir = @PKGLIBEXECDIR@
+ 
+@@ -35,6 +36,9 @@
+       install -dm555 $(DESTDIR)$(confdir)
+       install -dm700 $(DESTDIR)$(statedir)
+ 
++dist_metainfo_DATA = org.bluez.tools.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
++
+ if DATAFILES
+ dbusdir = $(DBUS_CONFDIR)/dbus-1/system.d
+ dbus_DATA = src/bluetooth.conf
+Index: bluez-salsa/org.bluez.tools.metainfo.xml
+===================================================================
+--- /dev/null  1970-01-01 00:00:00.000000000 +0000
++++ bluez-salsa/org.bluez.tools.metainfo.xml   2024-07-31 23:29:03.737781465 
+0200
+@@ -0,0 +1,19 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++  <id>org.bluez.tools</id>
++  <metadata_license>MIT</metadata_license>
++  <name>bluez</name>
++  <summary>Bluetooth tools and daemons</summary>
++  <description>
++    <p>This package contains tools and system daemons for using
++    Bluetooth devices.</p>
++
++    <p>BlueZ is the official Linux Bluetooth protocol stack. It is an
++    Open Source project distributed under GNU General Public License
++    (GPL).</p>
++  </description>
++  <url type="homepage">http://www.bluez.org</url>
++  <provides>
++    <modalias>lkmodule:bluetooth</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 7bbb51d1a..edd4d4f70 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ shared-gatt-client-Fix-segfault-after-PIN-entry.patch
 main.conf-Add-more-details-Closes-904212.patch
 headers-use-releative-symlinks.patch
 Add-HCI_TO_STR-macro-for-FIRMWARE_DIR.patch
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to