# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kmediaplayer pkgver=5.58.0 pkgrel=0 pkgdesc="Media player framework for KDE 5" arch="all" url="https://community.kde.org/Frameworks" license="X11 AND LGPL-2.1-or-later" depends_dev="qt5-qtbase-dev kparts-dev kxmlgui-dev" makedepends="$depends_dev extra-cmake-modules" checkdepends="xvfb-run" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { # viewtest requires X11 to be running CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="08c48d48ed149b52ed2b9838a78d9b08011c859d63f1b18ad8238042c3e710d9b40a7c719e36d5a70161a3c27827ea0394f61c9556f72a25bc6acaee31791e74 kmediaplayer-5.58.0.tar.xz"