# Template file for 'kio'
pkgname=kio
version=5.116.0
revision=1
build_style=cmake
configure_args="-DBUILD_DESIGNERPLUGIN=ON
 -DMEINPROC5_EXECUTABLE=/usr/bin/meinproc5
 -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson
 -DKF6_COMPAT_BUILD=ON"
hostmakedepends="kcoreaddons extra-cmake-modules kauth gettext
 qt5-host-tools qt5-qmake kdoctools libxml2 kcoreaddons"
makedepends="kdoctools-devel ksolid-devel kbookmarks-devel kjobwidgets-devel
 kwallet-devel acl-devel mit-krb5-devel libxslt-devel libxml2-devel"
depends="desktop-file-utils kf6-kio"
checkdepends="dbus desktop-file-utils"
short_desc="KDE Network transparent access to files and data"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.0-or-later"
homepage="https://invent.kde.org/frameworks/kio"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=efb719d6659c39a03b165dca3b6c84f729a833290fc44e7e1f99625690b6115a

do_check() {
	: # Pain to get working in limited enviroment, excpects e.g. real disks
}

kio-devel_package() {
	short_desc+=" - development"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/qt5/mkspecs
		vmove usr/lib/qt5/plugins/designer
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
