PKGBUILDs/extra/tracker/PKGBUILD

52 lines
1.5 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
2018-11-06 00:23:47 +00:00
pkgver=2.1.6
2018-11-06 12:42:00 +00:00
pkgrel=2
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)
2018-11-06 00:23:47 +00:00
_commit=c2d3289a13092642ec9735e0b2d508592532483d # tags/2.1.6^0
2018-11-06 12:42:00 +00:00
source=("git+https://gitlab.gnome.org/GNOME/tracker.git#commit=$_commit"
0001-build-Restore-right-soversion-to-libraries.patch)
sha256sums=('SKIP'
'13dbef758222723729a55de04a98488b5b943e565e6cbde25eb4f5598a6729c3')
2018-02-07 04:17:03 +00:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
2018-11-06 12:42:00 +00:00
patch -Np1 -i ../0001-build-Restore-right-soversion-to-libraries.patch
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
arch-meson $pkgname build -D b_lto=false -Dfunctional_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
}