# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=dolphin pkgver=21.04.2 pkgrel=0 # armhf blocked by extra-cmake-modules # s390x blocked by polkit arch="all !armhf !s390x !mips64" url="https://kde.org/applications/system/dolphin" pkgdesc="KDE File Manager" license="GPL-2.0-only" depends=" udisks2 kio-extras " depends_dev=" baloo-dev baloo-widgets-dev kactivities-dev kbookmarks-dev kcmutils-dev kcompletion-dev kconfig-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdoctools-dev kfilemetadata-dev ki18n-dev kiconthemes-dev kinit-dev kio-dev knewstuff-dev knotifications-dev kparts-dev ktextwidgets-dev kwindowsystem-dev phonon-dev qt5-qtbase-dev solid-dev " makedepends="$depends_dev extra-cmake-modules ruby-test-unit" checkdepends=" xvfb-run dbus " source="https://download.kde.org/stable/release-service/$pkgver/src/dolphin-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build # kfileitemmodeltest, placesitemmodeltest and dolphinmainwindowtest are broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(kfileitemmodel|placesitemmodel|dolphinmainwindow)test" } package() { DESTDIR="$pkgdir" cmake --build build --target install # We don't ship systemd rm -r "$pkgdir"/usr/lib/systemd } sha512sums=" 360b30f39181ce2c4c6fbd92c678425bbb2887dde2351e567951283351dbfa6c37d0a2c31fae9ab68f8cac3f1bd8625257b791071d98110591c388935c3601fe dolphin-21.04.2.tar.xz "