# Template file for 'ark'
# group=kde-gear
pkgname=ark
version=26.04.3
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-base gettext
 kf6-kdoctools kf6-kconfig pkg-config python3 kf6-kcoreaddons"
makedepends="libarchive-devel kf6-kpty-devel kf6-kparts-devel kf6-kitemmodels-devel libzip-devel kf6-kfilemetadata-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kio-devel kf6-kwindowsystem-devel kf6-kiconthemes-devel kf6-kwidgetsaddons-devel kf6-kconfig-devel kf6-kcrash-devel"
checkdepends="7zip 7zip-unrar lzop lrzip unrar unzip zip zstd"
short_desc="KDE Archiving Tool"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/en/utilities/org.kde.ark"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=8018fec69668aac35e5ab7ce4e51ce04de6ab7f56a3996322b016f41c31d5a01

do_check() {
	cd build

	# plugins-clirartest requires rar compressor
	# app-batchextracttest is broken
	XDG_RUNTIME_DIR=$x
	ctest -E plugins-clirartest \
	 -E app-batchextracttest

}
