# Template file for 'kpipewire'
pkgname=kpipewire
version=6.2.0
revision=1
build_style=cmake
configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml"
hostmakedepends="extra-cmake-modules gettext qt6-base qt6-tools pkg-config
 pipewire qt6-wayland-tools wayland-devel qt6-declarative-host-tools"
makedepends="ffmpeg6-devel kf6-kcoreaddons-devel kf6-kwayland-devel
 kf6-ki18n-devel libva-devel libepoxy-devel pipewire-devel qt6-wayland-devel
 plasma-wayland-protocols
 wayland-devel qt6-declarative-devel qt6-base-private-devel"
depends="pipewire"
short_desc="Components relating to Flatpak 'pipewire' use in Plasma"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://invent.kde.org/plasma/kpipewire"
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
checksum=72c07e6c6608b6c5eaa2460d975bf9047489651fb05de5e5b540876529f425b0

do_check() {
	cd build
	ctest -E "mediamonitortest"
}

kpipewire-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}
	 qt6-base-devel pipewire-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
