# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kitemviews pkgver=5.65.0 pkgrel=0 pkgdesc="Widget addons for Qt Model/View" arch="all" url="https://community.kde.org/Frameworks" license="GPL-2.0-only AND LGPL-2.1-only" depends_dev="qt5-qtbase-dev" makedepends="extra-cmake-modules qt5-qttools-dev doxygen" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kitemviews-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -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="aafcb832a105fd51b2ea768155fb6aee197b5e11cdfc900c1ee3086839896d208eaed599d4b40b0b7245e88dc233a68b69798bad6af3f883797a6e7a95449104 kitemviews-5.65.0.tar.xz"