# Template file for 'kdelibs'
pkgname=kdelibs
version=4.12.2
revision=1
short_desc="KDE core libraries"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL, LGPL, FDL"
homepage="http://www.kde.org"
distfiles="http://download.kde.org/stable/${version}/src/${pkgname}-${version}.tar.xz"
checksum=d03e20fa94387a19a17eca7c11abf5e14d2be324accca945d37e7757e583787a

build_style=cmake
configure_args="-DKDE4_BUILD_TESTS=OFF -DKDE_DISTRIBUTION_TEXT=Void
 -DSYSCONF_INSTALL_DIR=/etc -DHTML_INSTALL_DIR=/usr/share/doc/kde/html
 -DKDE_DEFAULT_HOME=.kde4 -DWITH_FAM=OFF -DWITH_HUpnp=OFF -DWITH_SOLID_UDISKS2=ON"

hostmakedepends="cmake perl automoc4 pkg-config docbook-xsl"
makedepends="openssl-devel libSM-devel libXext-devel libXScrnSaver-devel
 libXrender-devel phonon-devel strigi-devel pcre-devel libjpeg-turbo-devel
 libpng-devel giflib-devel acl-devel aspell-devel enchant-devel jasper-devel
 liblzma-devel mit-krb5-devel avahi-libs-devel libudev-devel libxslt-devel
 polkit-qt-devel libdbusmenu-qt-devel attica-devel grantlee-devel qca-devel
 libutempter-devel soprano-devel>=2.9.2_2 MesaLib-devel upower udisks2-devel
 shared-desktop-ontologies ca-certificates shared-mime-info media-player-info
 hicolor-icon-theme"
depends="docbook-xsl media-player-info shared-mime-info
 shared-desktop-ontologies upower hicolor-icon-theme ca-certificates"

post_install() {
	rm -f ${DESTDIR}/usr/share/apps/kssl/ca-bundle.crt
	ln -sf /etc/ssl/certs/ca-certificates.crt \
		${DESTDIR}/usr/share/apps/kssl/ca-bundle.crt
}

kdelibs-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/share/apps/cmake
		vmove usr/lib/cmake
	}
}
