# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=ktnef pkgver=19.08.2 pkgrel=1 pkgdesc="API for handling TNEF data" arch="all" url="https://kontact.kde.org/" license="LGPL-2.0-or-later" depends_dev="qt5-qtbase-dev kcalendarcore-dev kcalutils-dev kcontacts-dev ki18n-dev" makedepends="$depends_dev extra-cmake-modules" source="https://download.kde.org/stable/applications/$pkgver/src/ktnef-$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 CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="14bcf47eebb748399d67c6989e512ecce0878cf4ad443a80d7749b91e952845460ec9755d576becc96b767096cf58de8d82dda39305e5320534dd4ac67d305c7 ktnef-19.08.2.tar.xz"