PKGBUILDs/extra/tracker/PKGBUILD

55 lines
1.6 KiB
Bash
Raw Normal View History

2018-02-07 04:17:03 +00:00
# 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>
2018-07-24 00:24:58 +00:00
# - disable functional tests
2018-02-07 04:17:03 +00:00
pkgname=tracker
2019-02-21 00:50:48 +00:00
pkgver=2.2.0
2019-02-26 00:19:32 +00:00
pkgrel=3
2018-02-07 04:17:03 +00:00
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)
2018-07-24 00:24:58 +00:00
makedepends=(gobject-introspection intltool vala git gtk-doc bash-completion meson)
2018-02-07 04:17:03 +00:00
checkdepends=(python2-gobject python2-dbus)
groups=(gnome)
2019-02-22 19:10:21 +00:00
_commit=b70b9e159538852f9a8cd267ad5d4d0b57fd8074 # tags/2_2_0^0
2019-02-15 01:09:01 +00:00
source=("git+https://gitlab.gnome.org/GNOME/tracker.git#commit=$_commit")
sha256sums=('SKIP')
2018-02-07 04:17:03 +00:00
pkgver() {
cd $pkgname
2019-02-22 19:10:21 +00:00
git describe --tags | sed 's/_/./g;s/-/+/g'
2018-02-07 04:17:03 +00:00
}
prepare() {
cd $pkgname
2019-02-26 00:19:32 +00:00
# Could not insert metadata for item "file:///…/foo.pdf": Parser error at byte XXX: Expected ObjectList
git cherry-pick -n 639d9b614afb9cb5eb6f7cc8d52d98ba04ad43a9
# Looks like a bugfix
git cherry-pick -n de70127517b7e86ca13fcc5554cb6dde270a27fa
2018-02-07 04:17:03 +00:00
}
build() {
2018-10-05 02:58:36 +00:00
# LTO breaks due to duplicate types:
# https://gitlab.gnome.org/GNOME/tracker/issues/44
2019-02-21 00:50:48 +00:00
arch-meson $pkgname build -D b_lto=false -D docs=true -D functional_tests=false
2018-07-24 00:24:58 +00:00
ninja -C build
2018-02-07 04:17:03 +00:00
}
check() {
# Many tests are broken:
# - Assume schemas are installed
# - Assume services are autolaunched
2018-07-24 00:24:58 +00:00
dbus-run-session meson test -C build || :
2018-02-07 04:17:03 +00:00
}
package() {
2018-07-24 00:24:58 +00:00
DESTDIR="$pkgdir" meson install -C build
2018-02-07 04:17:03 +00:00
}