# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kitinerary pkgver=19.12.1 pkgrel=0 arch="all !armhf" # armhf blocked by qt5-qtdeclarative 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 zxing-cpp-dev zxing-cpp 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" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build # 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() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="4f39a2c4268fbde352c336e2d093072f2aae847cce12d1c2347dcdc4eb6b5aa42aea5e7bb19a08b2f5dc32571ce3273026302d4ae95901bb7425ed4b7d8ee704 kitinerary-19.12.1.tar.xz"