File: use-appstreamcli.patch

package info (click to toggle)
gnome-klotski 1%3A3.38.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,136 kB
  • sloc: xml: 107; python: 11; sh: 7; makefile: 6
file content (48 lines) | stat: -rw-r--r-- 1,632 bytes parent folder | 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 5b1e3320631c09bee4bc4a75a422f766c523d05c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sabri=20=C3=9Cnal?= <yakushabb@gmail.com>
Date: Fri, 3 May 2024 17:10:57 +0300
Subject: [PATCH] build: Use appstreamcli

- Use appstreamcli to validate apptada

More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#validation
---
 data/meson.build | 6 +++---
 meson.build      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/meson.build b/data/meson.build
index af16b6a..ce60e5f 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -69,11 +69,11 @@ appdata_file = i18n.merge_file(
 )
 
 # Validate AppData file
-if appstream_util.found()
+if appstreamcli.found()
   test(
-    'validate-appdata', appstream_util,
+    'validate-metainfo', appstreamcli,
     args: [
-      'validate', '--nonet', appdata_file.full_path()
+      'validate', '--no-net', '--explain', appdata_file.full_path()
     ]
   )
 endif
diff --git a/meson.build b/meson.build
index 8866d91..dd57738 100644
--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,7 @@ gtk_dependency = dependency('gtk+-3.0', version: '>= 3.24.0')
 rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
 posix_dependency = meson.get_compiler('vala').find_library('posix')
 
-appstream_util          = find_program('appstream-util',        required: false)
+appstreamcli            = find_program('appstreamcli',          required: false)
 desktop_file_validate   = find_program('desktop-file-validate', required: false)
 glib_compile_schema     = find_program('glib-compile-schemas',  required: true) # useful?
 
-- 
GitLab