Package: arduino / 2:1.8.19+dfsg1-3

debian-hacks/Install-appdata.xml-into-propriate-folder.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Fri, 8 Jan 2021 00:40:23 +0100
Subject: Install appdata.xml into propriate folder

Forwarded: not-needed

The installation of the appdata.xml file into the lib/ folder isn't
useful as the file needs to get into /u/s/metainfo finally. Let's
install the file renamed to the correct file name into

 build/linux/work/usr/share/metainfo.

From there we can grab the file by the install sequencer.

Forwarded: no
---
 build/build.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/build.xml b/build/build.xml
index 4bd6b1f..2d96e6e 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -652,7 +652,7 @@
 
     <copy tofile="linux/work/lib/arduino-arduinoide.xml" file="linux/dist/mime.xml" />
     <copy todir="linux/work/lib" file="linux/dist/desktop.template" />
-    <copy todir="linux/work/lib" file="linux/dist/appdata.xml" />
+    <copy tofile="linux/work/usr/share/metainfo/cc.arduino.arduinoide.appdata.xml" file="linux/dist/appdata.xml" />
 
     <copy todir="linux/work" file="linux/dist/arduino" />
     <copy todir="linux/work" file="linux/dist/install.sh" />