# Contributor: k0r10n # Contributor: Ivan Tham # Maintainer: Bart Ribbers pkgname=extra-cmake-modules pkgver=5.66.0 pkgrel=0 pkgdesc="Extra CMake modules" url="https://projects.kde.org/projects/kdesupport/extra-cmake-modules" arch="noarch !armhf" # qtdeclarative license="BSD-3-Clause" depends="cmake" makedepends="py3-sphinx" checkdepends="qt5-qtbase-dev qt5-qtquickcontrols2-dev" source="http://download.kde.org/stable/frameworks/${pkgver%.*}/extra-cmake-modules-$pkgver.tar.xz" subpackages="$pkgname-doc" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTING=ON \ -DSphinx_BUILD_EXECUTABLE=/usr/bin/sphinx-build make } check() { cd "$builddir"/build # Broken tests CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(KDEFetchTranslations|KDEInstallDirsTest.relative_or_absolute_usr|KDEInstallDirsTest.relative_or_absolute_qt)" } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install/fast } sha512sums="d0fdf658b636ad7b0cc70d87cb695010969d51f83c62a3b59ffc880c4b2db179170124e4baf185b6261801bad6207c4776536581c5152aeb174784af3b5236a4 extra-cmake-modules-5.66.0.tar.xz"