# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=sonnet pkgver=5.70.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 cmake --build 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" cmake --build build --target install } sha512sums="de93c1396262215407324795ea0ebc7d45752fb33873f0f6552821b9fa97dafd9972e274784f9f70c63f220aba9db261dccd55cf169cf62e629f398dc2db7fe9 sonnet-5.70.0.tar.xz"