PKGBUILDs/extra/tracker/PKGBUILD
2019-02-15 01:09:01 +00:00

51 lines
1.4 KiB
Bash

# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable functional tests
pkgname=tracker
pkgver=2.1.7
pkgrel=1
pkgdesc="Desktop-neutral user information store, search tool and indexer"
url="https://wiki.gnome.org/Projects/Tracker"
arch=(x86_64)
license=(GPL)
depends=(sqlite icu glib2 libffi util-linux libstemmer libseccomp libsoup json-glib upower libnm)
makedepends=(gobject-introspection intltool vala git gtk-doc bash-completion meson)
checkdepends=(python2-gobject python2-dbus)
groups=(gnome)
_commit=88bbc0a37d7a2be7d648e7b0e037529c45a9a4ee # tags/2.1.7^0
source=("git+https://gitlab.gnome.org/GNOME/tracker.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
# Fix soversions
git cherry-pick -n 282cd5aa85852cc7f9e603dae435f6b528c4712a
}
build() {
# LTO breaks due to duplicate types:
# https://gitlab.gnome.org/GNOME/tracker/issues/44
arch-meson $pkgname build -D b_lto=false -Dfunctional_tests=false
ninja -C build
}
check() {
# Many tests are broken:
# - Assume schemas are installed
# - Assume services are autolaunched
dbus-run-session meson test -C build || :
}
package() {
DESTDIR="$pkgdir" meson install -C build
}