# Template file for 'akonadi'
pkgname=akonadi
version=1.11.0
revision=1
short_desc="PIM layer, which provides an asynchronous API to access all kind of PIM data"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://community.kde.org/KDE_PIM/Akonadi"
distfiles="http://download.kde.org/stable/${pkgname}/src/${pkgname}-${version}.tar.bz2"
checksum=0cb257509d53927241b71d85c42efb0b5776efc37fc8dc732e75f6813b8a264d

build_style=cmake
configure_args="-DAKONADI_BUILD_TESTS=OFF -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE
 -DDATABASE_BACKEND=SQLITE"

# XXX mysql/pgsql backends.
hostmakedepends="cmake automoc4 pkg-config"
makedepends="shared-mime-info sqlite-devel boost-devel>=1.54 qt-devel
 phonon-devel soprano-devel>=2.9.2_4"
depends="shared-mime-info"

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