PKGBUILDs/extra/tracker/PKGBUILD

47 lines
1.3 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
2020-01-17 14:48:48 +00:00
pkgver=2.3.1+6+g4d3073954
pkgrel=1
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)
2019-09-10 23:15:40 +00:00
makedepends=(gobject-introspection vala git gtk-doc bash-completion meson)
2019-03-06 19:31:07 +00:00
checkdepends=(python-gobject python-dbus)
2018-02-07 04:17:03 +00:00
groups=(gnome)
2020-01-17 14:48:48 +00:00
_commit=4d3073954e97d0edf797d073581a82e77afc78cd # tracker-2.3
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
}
build() {
2019-09-10 23:15:40 +00:00
arch-meson $pkgname build -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
2019-05-03 00:21:37 +00:00
dbus-run-session meson test -C build --print-errorlogs -t 3 || :
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
}