aboutsummaryrefslogtreecommitdiffstats
path: root/community/zanshin/APKBUILD
blob: 47ba199ac51e194ac343bbc4407e35cdc5755f10 (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
57
58
59
60
61
62
63
64
65
66
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=zanshin
pkgver=22.04.2
pkgrel=0
# armhf blocked by qt5-qtdeclarative
# ppc64le and s390x blocked by qt5-qtwebengine -> akonadi-calendar
arch="all !armhf !ppc64le !s390x !riscv64"
url="https://zanshin.kde.org/"
pkgdesc="A Getting Things Done application which aims at getting your mind like water"
license="(GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.0-or-later"
makedepends="
	akonadi-calendar-dev
	boost-dev
	extra-cmake-modules
	ki18n-dev
	kontactinterface-dev
	krunner-dev
	kwindowsystem-dev
	qt5-qtbase-dev
	samurai
	"
checkdepends="
	dbus
	xvfb-run
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/zanshin-$pkgver.tar.xz"
subpackages="$pkgname-lang"

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

check() {
	# tests-units-akonadi-akonadistoragetest, tests-units-akonadi-akonadicachingstorageintegrationtest,
	# tests-units-presentation-alltaskspagemodeltest, tests-units-widgets-editorviewtest,
	# tests-units-widgets-pageviewtest, tests-units-migrator-zanshin021migrationtest,
	# tests-units-migrator-zanshincontextitemsmigrationtest are broken
	local skipped_tests="("
	local tests="
		tests-units-akonadi-akonadistoragetest
		tests-units-akonadi-akonadicachingstorageintegrationtest
		tests-units-presentation-alltaskspagemodeltest
		tests-units-widgets-editorviewtest
		tests-units-widgets-pageviewtest
		tests-units-migrator-zanshin021migrationtest
		tests-units-migrator-zanshincontextitemsmigrationtest"
	for test in $tests; do
		skipped_tests="$skipped_tests|$test"
	done
	skipped_tests="$skipped_tests)"
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests"
}

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

sha512sums="
cab11e556eb94adcdf042b65e0b646c012330b5fe06eed15e6b9f97c999c3e5722d7e95d96b336488444dcd4d62e9386af986648a9271c6d16cd9230e0133aa2  zanshin-22.04.2.tar.xz
"