# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=sonnet pkgver=5.69.0 pkgrel=0 pkgdesc="Spelling framework for Qt5" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-only" depends="hunspell" depends_dev="qt5-qtbase" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen hunspell-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/sonnet-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make -C build } check() { cd build # sonnet-test_autodetect fails to detect a speller backend CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "sonnet-test_autodetect" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="3336ed334b01f08094ac8edb65b19c6e2cb54f864bd09a89c1fa2f654bc27d2333653b420f1a4f13e5ccaef591216664fb51f775ce295739223c8fb04b79fee1 sonnet-5.69.0.tar.xz"