blob: 345cd5ee9328c0f9aef72410d4a5df3f44a79e9d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=akonadi-search
pkgver=19.12.2
pkgrel=1
pkgdesc="Libraries and daemons to implement searching in Akonadi"
arch="all !armhf"
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 kcalendarcore-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/akonadi-search-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
check() {
cd "$builddir"/build
# akonadi-sqlite-schedulertest, konadi-sqlite-collectionindexingjobtest,
# akonadi-mysql-schedulertest and akonadi-mysql-collectionindexingjobtest
# require running dbus server
# Prevent the lines using more than 80 characters by looping
local skipped_tests="("
local tests="
akonadi-sqlite-scheduler
akonadi-sqlite-collectionindexingjob
akonadi-mysql-scheduler
akonadi-mysql-collectionindexingjob"
for test in $tests; do
skipped_tests="$skipped_tests|$test"
done
skipped_tests="$skipped_tests)test"
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests"
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
}
sha512sums="c70b7e4029352831a6c4715fdb3b34a38660bf08d87a4cd5fa02fc5cbc8be080ee83647c68431c20135a67e19392ceaf21ede8a5eae806593657a026455471b7 akonadi-search-19.12.2.tar.xz"
|