aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kitinerary/APKBUILD
blob: 3a50b34f3e7a44a8e1ac4af8367ff12aba30fa0c (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kitinerary
pkgver=19.04.2
pkgrel=0
arch="all"
url="https://kontact.kde.org/"
pkgdesc="Data model and extraction system for travel reservation information"
license="LGPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kmime-dev kcalcore-dev kcontacts-dev kpkpass-dev poppler-dev zxing-cpp-dev zxing-cpp zlib-dev libxml2-dev libphonenumber-dev kcalcore-dev"
source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	# jsonlddocumenttest, mergeutiltest, airportdbtest, pkpassextractortest, postprocessortest, calendarhandlertest and extractortest are broken
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(jsonlddocument|mergeutil|airportdb|pkpassextractor|postprocessor|calendarhandler|extractor)test"
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="1794a8e95b3d57ca5a2d8621e653cd5fcbbf434ae70fefdf735929a44577449f0e2d10716a5b2e55087b988a5e90faa8245eb5d7af65bc9e36615bf305715d25  kitinerary-19.04.2.tar.xz"