aboutsummaryrefslogtreecommitdiffstats
path: root/community/sink/APKBUILD
blob: 19836a275bfa010991bcfee33df53f9433b386d5 (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=sink
pkgver=0.9.0
pkgrel=3
pkgdesc="Offline caching, synchronization and indexing system for PIM data"
arch="all !armhf" # limited by flatbuffers
url="https://community.kde.org/KDE_PIM"
license="LicenseRef-KDE-Accepted-GPL"
depends_dev="
	curl-dev
	flatbuffers-dev
	gpgme-dev
	kasync-dev
	kcalendarcore-dev
	kcontacts-dev
	kdav2-dev
	kimap2-dev
	kmime-dev
	lmdb-dev
	qt5-qtbase-dev
	samurai
	xapian-core-dev
	"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://invent.kde.org/pim/sink/-/archive/v$pkgver/sink-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # Failing tests
builddir="$srcdir/$pkgname-v$pkgver"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8f64872827978196178115ea46db655479cf7b88086ff6ec6e60000c5edd57f9cf0d51a8d7cb11660b987a6b3a0f9a8a985e264c6ba988965cfce49a631e428b  sink-v0.9.0.tar.gz
"