summaryrefslogtreecommitdiff
path: root/testing/akonadi-search/APKBUILD
blob: 74f105852c80be4973d83f47885ec3fca3395384 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=akonadi-search
pkgver=19.04.2
pkgrel=0
pkgdesc="Libraries and daemons to implement searching in Akonadi"
arch="all"
url="https://community.kde.org/KDE_PIM"
license="(GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends_dev="qt5-qtbase-dev ki18n-dev kconfig-dev kcrash-dev kdbusaddons-dev kcmutils-dev kio-dev krunner-dev xapian-core-dev akonadi-dev kcontacts-dev kmime-dev akonadi-mime-dev kcalcore-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	# akonadi-sqlite-schedulertest and akonadi-sqlite-collectionindexingjobtest require running dbus server
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(akonadi-sqlite-scheduler|akonadi-sqlite-collectionindexingjob)test"
}

package() {
	DESTDIR="$pkgdir" make install
}
sha512sums="bd02c00b5d1a20a84ced6a3e60c7372a50fe7057bf9abf170172bf700930c35b4e345e2d22bc6e82cf78444d85defda3083ae03d4ecb2fa7298468d9cb1f0b2c  akonadi-search-19.04.2.tar.xz"