Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "Tracker is a file search engine" |
| 2 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" |
| 3 | LIC_FILES_CHKSUM = " \ |
| 4 | file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \ |
| 5 | file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 6 | " |
| 7 | |
| 8 | DEPENDS = " \ |
| 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 Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 21 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 22 | inherit gettext gnomebase gobject-introspection vala gtk-doc bash-completion python3native |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 23 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 24 | SRC_URI += "file://0001-fix-reproducibility.patch" |
| 25 | SRC_URI[archive.sha256sum] = "52592cfe19baffd16dbe47475be7da750dbd0b6333fd7acb60faa9da5bc40df2" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 26 | |
| 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 |
| 31 | do_write_config[vardeps] += "PACKAGECONFIG" |
| 32 | do_write_config:append() { |
| 33 | echo "[properties]" > ${WORKDIR}/meson-tracker.cross |
| 34 | echo "sqlite3_has_fts5 = 'true'" >> ${WORKDIR}/meson-tracker.cross |
| 35 | } |
| 36 | |
| 37 | EXTRA_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 Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 43 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=enabled', '-Dvapi=disabled', d)} \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 44 | " |
| 45 | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 46 | do_install:prepend() { |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 47 | 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 Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | GIR_MESON_ENABLE_FLAG = 'enabled' |
| 52 | GIR_MESON_DISABLE_FLAG = 'disabled' |
| 53 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 54 | FILES:${PN} += " \ |
| 55 | ${datadir}/dbus-1 \ |
| 56 | ${datadir}/tracker3 \ |
| 57 | ${libdir}/tracker-3.0 \ |
| 58 | ${systemd_user_unitdir} \ |
| 59 | " |