# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=tracker pkgver=2.2.2 pkgrel=1 pkgdesc="Personal search tool and storage system" url="https://wiki.gnome.org/Projects/Tracker" arch="all" license="GPL-2.0-or-later" makedepends=" bash-completion dbus-dev glib-dev gobject-introspection-dev icu-dev json-glib-dev libsoup-dev libxml2-dev meson py3-setuptools sqlite-dev networkmanager-dev vala" options="!check" subpackages=" $pkgname-dev $pkgname-doc $pkgname-lang lib$pkgname:libs $pkgname-bash-completion:bashcomp:noarch" source="https://download.gnome.org/sources/tracker/${pkgver%.*}/tracker-${pkgver}.tar.xz 90.patch" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dsystemd_user_services=no \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } bashcomp() { pkgdesc="Bash completion for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share } sha512sums="2c18c324d4d98fb62bbf21eac8f647bd34463cee4d9f71d411e22d695fc28cc0c5334e2d41517875a5741213d9405e768f3efae6a8a4a8e72d01563c335f47a7 tracker-2.2.2.tar.xz caa7a01b047dd8f7bcfd14e5d5439f7f44c5abbbad642899b02f8fbb8b9ed4639a16c1b1020f5fade96f67c6855170666f0e95f027efceecf52d30a209a02f14 90.patch"