# Template file for 'marble'
# vim: set ts=4 sw=4 sts=4 et:

pkgname=marble
version=4.14.3
revision=3
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
homepage="hhttps://marble.kde.org"
license="GPL-3"
short_desc="Virtual globe and world atlas"
build_style=cmake
hostmakedepends="cmake automoc4 pkg-config"
makedepends="libressl-devel qt-devel kdelibs-devel phonon-devel"
replaces="libmarble>=0"
distfiles="http://download.kde.org/stable/${version}/src/marble-${version}.tar.xz"
checksum="4d6667cf67ae9976e4c1efc306be222d13f2ee5927483325411ae0e9631dc0f0"

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