# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kitemmodels pkgver=5.108.0 pkgrel=0 pkgdesc="Models for Qt Model/View system" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.0-only AND LGPL-2.0-or-later" depends_dev="qt5-qtbase-dev" makedepends="$depends_dev doxygen extra-cmake-modules graphviz qt5-qtdeclarative-dev qt5-qttools-dev samurai " checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kitemmodels-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build # kdescendantsproxymodel_smoketest and kdescendantsproxymodeltest are broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kdescendantsproxymodel(_smoketest|test)" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 26ad954449d894f8c45b220b68f4191409b7973910451fdebc59fd8030fe69357ac06907e391744aaf631033bcc0c4a4abe274714583019fd1074202cc47fa88 kitemmodels-5.108.0.tar.xz "