# Template file for 'ark'
pkgname=ark
version=18.08.2
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt5-devel qt5-qmake kdoctools kconfig"
makedepends="libarchive-devel kpty-devel kparts-devel kitemmodels-devel libzip-devel"
short_desc="KDE Archiving Tool"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-2.0-or-later"
homepage="https://kde.org/applications/utilities/ark"
distfiles="${KDE_SITE}/applications/${version}/src/${pkgname}-${version}.tar.xz"
checksum=2354d6f3fd2adabfe6203240a0b7a6692bd08c8b50470b81b472d16ec7507ae7

if [ "$CROSS_BUILD" ]; then
	hostmakedepends+=" python kcoreaddons kparts"
	configure_args="-DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
fi
