aboutsummaryrefslogtreecommitdiffstats
path: root/community/kitinerary/APKBUILD
blob: b35d90b8038c8bcd49417d24f7683c29eda2656e (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
58
59
60
61
62
63
64
65
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kitinerary
pkgver=20.12.1
pkgrel=2
arch="all !armhf !ppc64le" # armhf blocked by qt5-qtdeclarative, ppc64le FTBFS
url="https://kontact.kde.org/"
pkgdesc="Data model and extraction system for travel reservation information"
license="LGPL-2.0-or-later"
depends_dev="
	kmime-dev
	kcalendarcore-dev
	kcontacts-dev
	kpkpass-dev
	"
makedepends="
	$depends_dev
	extra-cmake-modules
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	ki18n-dev
	poppler-dev
	zlib-dev
	libxml2-dev
	shared-mime-info
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kitinerary-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build

	# jsonlddocumenttest, mergeutiltest, airportdbtest, pkpassextractortest,
	# postprocessortest, calendarhandlertest, extractortest and knowledgedbtest are broken
	local skipped_tests="("
	local tests="
		jsonlddocument
		mergeutil
		airportdb
		pkpassextractor
		postprocessor
		calendarhandler
		extractor
		knowledgedb
		"
	for test in $tests; do
		skipped_tests="$skipped_tests|$test"
	done
	skipped_tests="$skipped_tests)test"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "$skipped_tests"
}

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

sha512sums="b90bfbf3e59c096211ce15225aa0343f404bc381861b2df8e14d12fc6c84bce8ad49f8f652501b252ccd30278cbb428e5057c0b1534b407e04a2d9b5484881e8  kitinerary-20.12.1.tar.xz"