blob: 1ba4521834a461bda5553b324d4090ac727351a8 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "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 \
Andrew Geissler517393d2023-01-13 08:55:19 -060014 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 gtk-doc pkgconfig vala
23
Andrew Geissler3eeda902023-05-19 10:14:02 -050024GIR_MESON_OPTION = "gir"
Andrew Geissler517393d2023-01-13 08:55:19 -060025
26SRC_URI = "https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz"
27SRC_URI:append:class-target = " file://0001-fix-crosscompile.patch"
Andrew Geissler3eeda902023-05-19 10:14:02 -050028SRC_URI[sha256sum] = "f9cb80bd388fbf06be268afa7f2d65863c85d605ad874b905094f3982d03f232"
Andrew Geissler517393d2023-01-13 08:55:19 -060029
30S = "${WORKDIR}/AppStream-${PV}"
31
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060032PACKAGECONFIG ?= "stemming ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
33
34PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
35PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
36
Andrew Geissler517393d2023-01-13 08:55:19 -060037FILES:${PN} += "${datadir}"
38
39EXTRA_OEMESON:class-target += "--cross-file=${WORKDIR}/meson-${PN}.cross"
40
41do_write_config:append:class-target() {
42 cat >${WORKDIR}/meson-${PN}.cross <<EOF
43[binaries]
44appstreamcli = '${STAGING_BINDIR_NATIVE}/appstreamcli'
45EOF
46}
47
48BBCLASSEXTEND = "native"