# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kitemmodels pkgver=5.67.0 pkgrel=1 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 extra-cmake-modules qt5-qttools-dev qt5-qtdeclarative-dev doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kitemmodels-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="ea83034e6e3550d2d8533439c6f6a3158ab233e3549a841b7da07dbe77f24dec0de284f6a4e50e62d402e254e40e68ba0b7eb54258307692be8e7fc5f51107aa kitemmodels-5.67.0.tar.xz"