Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available." |
| 2 | HOMEPAGE = "https://github.com/ximion/appstream" |
| 3 | LICENSE = "LGPL-2.1-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da" |
| 5 | |
| 6 | DEPENDS = " \ |
| 7 | appstream-native \ |
| 8 | curl-native \ |
| 9 | curl \ |
| 10 | docbook-xml-dtd4-native \ |
| 11 | gperf-native \ |
| 12 | glib-2.0 \ |
| 13 | libyaml \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 14 | libxml2 \ |
| 15 | libxmlb \ |
| 16 | libxslt-native \ |
| 17 | itstool-native \ |
| 18 | docbook-xsl-stylesheets-native \ |
| 19 | python3-pygments-native \ |
| 20 | " |
| 21 | |
| 22 | inherit meson gobject-introspection gettext gtk-doc pkgconfig vala |
| 23 | |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 24 | GIR_MESON_OPTION = "gir" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 25 | |
| 26 | SRC_URI = "https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz" |
| 27 | SRC_URI:append:class-target = " file://0001-fix-crosscompile.patch" |
Andrew Geissler | 3eeda90 | 2023-05-19 10:14:02 -0500 | [diff] [blame] | 28 | SRC_URI[sha256sum] = "f9cb80bd388fbf06be268afa7f2d65863c85d605ad874b905094f3982d03f232" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 29 | |
| 30 | S = "${WORKDIR}/AppStream-${PV}" |
| 31 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 32 | PACKAGECONFIG ?= "stemming ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 33 | |
| 34 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd" |
| 35 | PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer" |
| 36 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 37 | FILES:${PN} += "${datadir}" |
| 38 | |
| 39 | EXTRA_OEMESON:class-target += "--cross-file=${WORKDIR}/meson-${PN}.cross" |
| 40 | |
| 41 | do_write_config:append:class-target() { |
| 42 | cat >${WORKDIR}/meson-${PN}.cross <<EOF |
| 43 | [binaries] |
| 44 | appstreamcli = '${STAGING_BINDIR_NATIVE}/appstreamcli' |
| 45 | EOF |
| 46 | } |
| 47 | |
| 48 | BBCLASSEXTEND = "native" |