void-packages/srcpkgs/kf6-kio/template

69 lines
2.3 KiB
Bash

# Template file for 'kf6-kio'
pkgname=kf6-kio
version=6.3.0
revision=2
build_style=cmake
build_helper=qemu
configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml
-DKF6_HOST_TOOLING=/usr/lib/cmake
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
gettext kf6-kdoctools kf6-kconfig kf6-kauth-tools"
makedepends="kf6-karchive-devel kf6-kauth-devel kf6-kbookmarks-devel
kf6-kservice-devel kf6-solid-devel kf6-kcrash-devel kf6-kdbusaddons-devel
kf6-kcompletion-devel kf6-kiconthemes-devel kf6-kitemviews-devel
kf6-kjobwidgets-devel kf6-kwindowsystem-devel kf6-kwallet-devel
kf6-kded-devel qt6-qt5compat-devel qt6-tools-devel acl-devel
qt6-base-private-devel kf6-kdoctools-devel"
checkdepends="xvfb-run dbus"
short_desc="KDE Network transparent access to files and data"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kio"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=39e1afb324069605609c60c1d4638da886debf6159179521167b5159d79a0448
do_check() {
cd build
# disable failing tests
tests=("kpasswdservertest"
"kiocore-kmountpointtest"
"kiocore-jobtest"
"kiocore-kfileitemtest"
"kiocore-filefiltertest"
"kiogui-favicontest"
"kiogui-openurljobtest"
"applicationlauncherjob_servicetest"
"commandlauncherjob_servicetest"
"kiowidgets-kdirmodeltest"
"kiowidgets-kfileitemactionstest"
"kiowidgets-kurifiltertest-colon-separator"
"kiowidgets-kurifiltertest-space-separator"
"kiofilewidgets-kfilewidgettest"
"kiofilewidgets-kfileplacesmodeltest"
"kiowidgets-kdirlistertest"
"applicationlauncherjob_scopetest"
"applicationlauncherjob_forkingtest"
"kiocore-privilegejobtest"
"kiofilewidgets-kfilecopytomenutest"
"testtrash"
"kiocore-threadtest"
"kiowidgets-clipboardupdatertest"
"kiowidgets-dropjobtest"
"kiowidgets-fileundomanagertest"
"kiowidgets-pastetest"
"kiofilewidgets-knewfilemenutest")
dbus-run-session xvfb-run ctest -E "($( echo ${tests[@]} | tr " " "|"))"
}
kf6-kio-devel_package() {
depends="${makedepends/qt6-tools-devel/} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/libKF6KIO*.so"
vmove usr/share/doc
}
}