aboutsummaryrefslogtreecommitdiffstats
path: root/community/zanshin/APKBUILD
blob: 2c727cecd03b0bad7a8550674d3e43bf06615601 (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
52
53
54
55
56
57
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=zanshin
pkgver=0.5.71
pkgrel=4
# Blocked on armhf by qt5-qtdeclarative
# Blocked on mips, ppc64le and s390x by akonadi-calendar
# Blocked on armv7 by qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !mips !mips64 !armv7"
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="extra-cmake-modules qt5-qtbase-dev boost-dev akonadi-calendar-dev kontactinterface-dev krunner-dev kwindowsystem-dev ki18n-dev"
checkdepends="xvfb-run dbus"
source="https://download.kde.org/stable/zanshin/zanshin-$pkgver.tar.xz
	Port-to-kontactinterface.patch
	Build-against-recent-Akonadi.patch
	"
subpackages="$pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-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 --build build --target install
}

sha512sums="47b4fa8797dd50372dcf176198e1c80348cd1ba604d1ed61cd973956e54ba5551caea33c766d857bc3ad598bd0eae9882ffc315e13e6e3b9c1033d01c8e029d8  zanshin-0.5.71.tar.xz
be856c8af20a5673d9dfdf399232bd7ff73bec440cbd5823dd007db99326299b1fca7f1c9f479255750f7f5cfd6ec7d5df5354ff2bcab9fc0b67481f28b8ad66  Port-to-kontactinterface.patch
e67c849e7536152e3e0ce99c501023a7b3b63480bc1d75514dec127016b9adf2b6ead4868f73f1061feb660637264e9ee50f9f5fcfd6cfb93a74faa4b48893e0  Build-against-recent-Akonadi.patch"