blob: 603efbb324ebe818cca282819ffe2794e53058ae [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Tracker is a file search engine"
2LICENSE = "GPL-2.0-only & LGPL-2.1-only"
3LIC_FILES_CHKSUM = " \
4 file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \
5 file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
6"
7
8DEPENDS = " \
9 dbus-native \
10 python3-pygobject-native \
11 glib-2.0 \
12 sqlite3 \
13 libarchive \
14 dbus \
15 icu \
16 json-glib \
17 libsoup-3.0 \
18 libstemmer \
19"
20
Andrew Geissler517393d2023-01-13 08:55:19 -060021
Patrick Williams169d7bc2024-01-05 11:33:25 -060022inherit gettext gnomebase gobject-introspection vala gtk-doc bash-completion python3native
Andrew Geissler517393d2023-01-13 08:55:19 -060023
Andrew Geissler220dafd2023-10-04 10:18:08 -050024SRC_URI += "file://0001-fix-reproducibility.patch"
25SRC_URI[archive.sha256sum] = "52592cfe19baffd16dbe47475be7da750dbd0b6333fd7acb60faa9da5bc40df2"
Andrew Geissler517393d2023-01-13 08:55:19 -060026
27# text search is not an option anymore and requires sqlite3 build with
28# PACKAGECONFIG[fts5] set (default)
29
30# set required cross property sqlite3_has_fts5
31do_write_config[vardeps] += "PACKAGECONFIG"
32do_write_config:append() {
33 echo "[properties]" > ${WORKDIR}/meson-tracker.cross
34 echo "sqlite3_has_fts5 = 'true'" >> ${WORKDIR}/meson-tracker.cross
35}
36
37EXTRA_OEMESON = " \
38 --cross-file ${WORKDIR}/meson-tracker.cross \
39 -Dman=false \
40 -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \
41 -Dsystemd_user_services_dir=${systemd_user_unitdir} \
42 -Dsoup=soup3 \
Andrew Geissler220dafd2023-10-04 10:18:08 -050043 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=enabled', '-Dvapi=disabled', d)} \
Andrew Geissler517393d2023-01-13 08:55:19 -060044"
45
Andrew Geissler220dafd2023-10-04 10:18:08 -050046do_install:prepend() {
Patrick Williamsac13d5f2023-11-24 18:59:46 -060047 sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/tracker-sparql-enum-types.c
48 sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/core/tracker-data-enum-types.c
Andrew Geissler220dafd2023-10-04 10:18:08 -050049}
50
51GIR_MESON_ENABLE_FLAG = 'enabled'
52GIR_MESON_DISABLE_FLAG = 'disabled'
53
Andrew Geissler517393d2023-01-13 08:55:19 -060054FILES:${PN} += " \
55 ${datadir}/dbus-1 \
56 ${datadir}/tracker3 \
57 ${libdir}/tracker-3.0 \
58 ${systemd_user_unitdir} \
59"