blob: 39e3455028307b39788cb1ca0d03ea0e26e67dcf (
plain)
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
73
74
75
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tracker
pkgver=2.3.2
pkgrel=2
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
$pkgname-dbg"
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"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
-Dsystemd_user_services=no \
. output
ninja -C output
}
check() {
ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
# Remove installed tests
rm -r "$pkgdir"/usr/lib/tracker-2.0/trackertestutils
}
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
}
libs() {
default_libs
mkdir "$subpkgdir"/usr/lib/tracker-2.0
mv "$pkgdir"/usr/lib/tracker-2.0/libtracker-data.so "$subpkgdir"/usr/lib/tracker-2.0
}
sha512sums="e5903813423138140e0f9f2efc38433c71910bfbbea54c4e577fecdd5c4ca32fddf94ec2d13da17305af2937fbcc548e700fafcdfb2675a8dac7318f3c9b701a tracker-2.3.2.tar.xz"
|