# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=tracker pkgver=3.5.3 pkgrel=0 pkgdesc="Personal search tool and storage system" url="https://wiki.gnome.org/Projects/Tracker" arch="all" license="GPL-2.0-or-later" makedepends=" asciidoc bash-completion-dev dbus-dev glib-dev gobject-introspection-dev icu-dev json-glib-dev libsoup3-dev libstemmer-dev libxml2-dev meson py3-gobject3 py3-setuptools sqlite-dev networkmanager-dev vala " checkdepends=" bash dbus " subpackages=" $pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang lib$pkgname:libs $pkgname-bash-completion $pkgname-testutils:_testutils" source="https://download.gnome.org/sources/tracker/${pkgver%.*}/tracker-$pkgver.tar.xz fix-tests.patch " # x86: still sigabrts # armhf: hang for a really long time case "$CARCH" in armhf|x86) options="$options !check" ;; esac build() { abuild-meson \ -Db_lto=true \ -Ddocs=false \ -Dsystemd_user_services=false \ -Dtests="$(want_check && echo true || echo false)" \ . output meson compile -C output } check() { XDG_RUNTIME_DIR="$(mktemp -p "$builddir" -d)" \ dbus-run-session -- \ meson test -t 10 --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } _testutils() { pkgdesc="$pkgname (test utilities)" depends="tracker=$pkgver-r$pkgrel py3-gobject3 bash" amove usr/lib/tracker-3.0/trackertestutils } sha512sums=" ed75f7cbb75daab6597bab58937554b531bc2c32581148c2d828cb313644b198a057024c5202d0990237bc01119d1789f0fbc87868919fc2f00bcb40e76f7b23 tracker-3.5.3.tar.xz c49e9c3f53622e3c569f5c7e8280ae3c0928bc466146b12a6e8b26fe24207b066d687abf150b2e3782e0a59ab48c8c7a51795ae43988a285bf1f4e6debf779ac fix-tests.patch "