aboutsummaryrefslogtreecommitdiffstats
path: root/community/tracker/APKBUILD
blob: 2a0248fa3835334435ec941832bfdb44920d6402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tracker
pkgver=3.1.1
pkgrel=0
pkgdesc="Personal search tool and storage system"
url="https://wiki.gnome.org/Projects/Tracker"
# s390x, mips64 and riscv64 blocked by networkmanager -> polkit
arch="all !s390x !mips64 !riscv64"
license="GPL-2.0-or-later"
makedepends="
	asciidoc
	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
	$pkgname-dbg
	$pkgname-testutils:_testutils"
source="https://download.gnome.org/sources/tracker/${pkgver%.*}/tracker-$pkgver.tar.xz"

build() {
	# https://gitlab.gnome.org/GNOME/tracker-miners/issues/91
	export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=2097152"

	abuild-meson \
		-Ddocs=false \
		-Dsystemd_user_services=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

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
}

_testutils() {
	pkgdesc="$pkgname (test utilities)"
	depends="tracker=$pkgver-r$pkgrel py3-gobject3 bash"

	amove usr/lib/tracker-3.0/trackertestutils
}

sha512sums="87e6cc6dbfb34cc17bef42defefc51fc9d9586bffebf7a282a89ec3b294e911c504ea862bb05e5a269e438a83fbeb8938670eb32fa11d0d09ba805e0b02e6dcd  tracker-3.1.1.tar.xz"