# Contributor: k0r10n # Contributor: Ivan Tham # Maintainer: Bart Ribbers pkgname=extra-cmake-modules pkgver=5.68.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" build() { cmake -B build . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTING=ON \ -DSphinx_BUILD_EXECUTABLE=/usr/bin/sphinx-build make -C build } check() { cd build # Broken tests CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(KDEFetchTranslations|KDEInstallDirsTest.relative_or_absolute_usr|KDEInstallDirsTest.relative_or_absolute_qt)" } package() { make -C build DESTDIR="$pkgdir" install/fast } sha512sums="0e3d7d9c6fd58dbf87923ec35709bbf11386d65038f698461de51bdb65a9f05c84fe9902184f97f47b133dfb88118d6306f30f6eeee912f89b9c41a3e30ffac1 extra-cmake-modules-5.68.0.tar.xz"