# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kpty pkgver=5.61.0 pkgrel=0 pkgdesc="Pty abstraction" arch="all" url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" depends_dev="qt5-qtbase-dev kcoreaddons-dev ki18n-dev libutempter-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" options="!check" # The one test it has fails: "Can't open a pseudo teletype" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="dc2de79519411e765865ffa38c0a804dcc540f43ccc39bd37176ed3fefa8cbf2c5d1550758df0356d83d6523bd244e0d28d4515cf3b3d831295b977973d025c5 kpty-5.61.0.tar.xz"