summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/appstream/appstream_1.0.5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/appstream/appstream_1.0.5.bb')
-rw-r--r--meta/recipes-support/appstream/appstream_1.0.5.bb53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-support/appstream/appstream_1.0.5.bb b/meta/recipes-support/appstream/appstream_1.0.5.bb
new file mode 100644
index 0000000000..bb293f76e2
--- /dev/null
+++ b/meta/recipes-support/appstream/appstream_1.0.5.bb
@@ -0,0 +1,53 @@
1SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available."
2HOMEPAGE = "https://github.com/ximion/appstream"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da"
5
6DEPENDS = " \
7 appstream-native \
8 curl-native \
9 curl \
10 docbook-xml-dtd4-native \
11 gperf-native \
12 glib-2.0 \
13 libyaml \
14 libxml2 \
15 libxmlb \
16 libxslt-native \
17 itstool-native \
18 docbook-xsl-stylesheets-native \
19 python3-pygments-native \
20"
21
22inherit meson gobject-introspection gettext gi-docgen pkgconfig vala
23
24GIR_MESON_OPTION = "gir"
25GIDOCGEN_MESON_OPTION = "apidocs"
26
27SRC_URI = " \
28 https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \
29 file://0001-remove-hardcoded-path.patch \
30 file://0002-Do-not-build-qt-tests.patch \
31 file://0003-Fix-PACKAGE_PREFIX_DIR-in-qt-cmake-AppStreamQtConfig.patch \
32"
33SRC_URI[sha256sum] = "ce0ed29e89abd5f0cf790ea87d792f1967c3413060beb30e63a979578d975121"
34
35S = "${UNPACKDIR}/AppStream-${PV}"
36
37PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
38
39PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
40PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
41PACKAGECONFIG[qt6] = "-Dqt=true,-Dqt=false,qtbase"
42
43FILES:${PN} += "${datadir}"
44
45EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
46
47BBCLASSEXTEND = "native"
48
49# Fix meson not finding the Qt build tools in cross-compilation
50# setups. See: https://github.com/mesonbuild/meson/issues/13018
51do_configure:prepend:class-target() {
52 export PATH=${STAGING_DIR_NATIVE}${libexecdir}:$PATH
53}