# Template file for 'marble5'
pkgname=marble5
version=18.08.2
revision=1
wrksrc="marble-${version}"
build_style=cmake
configure_args="-DBUILD_MARBLE_TESTS=NO -DKF5_HOST_TOOLING=/usr/lib/cmake"
hostmakedepends="extra-cmake-modules kconfig-devel kcoreaddons-devel kdoctools
 perl qt5-host-tools qt5-qmake"
makedepends="gpsd-devel knewstuff-devel kparts-devel krunner-devel phonon-devel
 qt5-location-devel qt5-serialport-devel qt5-webkit-devel shapelib-devel"
short_desc="Virtual globe and world atlas"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-2.1-or-later, GFDL-1.2-only"
homepage="https://marble.kde.org"
distfiles="${KDE_SITE}/applications/${version}/src/marble-${version}.tar.xz"
checksum=600ce8d9427ab702536a4846d69e2289355b92e1e1b75bd2371e3cfa4e911d7f

marble5-devel_package() {
	short_desc+=" - development files"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	conflicts="marble-devel"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
		vmove usr/lib/cmake
	}
}
