# Template file for 'quasselclient'

pkgname=quasselclient
version=0.11.0
revision=5
build_style=cmake
short_desc="The client you need to connect to the quasselcore"
maintainer="Reh Wanne <rehwanne@milliways.info>"
license="GPL-3"
homepage="http://www.quassel-irc.org"
wrksrc="quassel-${version}"
distfiles="http://quassel-irc.org/pub/quassel-${version}.tar.bz2"
checksum="99a191b8bc2a410f7020b890ec57e0be49313f539da9f4843675bb108b0f4504"
hostmakedepends="cmake pkg-config"
makedepends="zlib-devel qt-devel libdbusmenu-qt-devel phonon-devel"
depends="desktop-file-utils"
configure_args="-DEMBED_DATA=1 -DWANT_QTCLIENT=ON -DWANT_MONO=OFF -DWANT_CORE=OFF -DWITH_OPENSSL=ON -DWITH_DBUS=ON -DWITH_PHONON=ON -DWITH_WEBKIT=ON"

post_install() {
	mv ${DESTDIR}/usr/share/icons/hicolor/48x48/apps/{quassel,$pkgname}.png
	mv ${DESTDIR}/usr/share/pixmaps/{quassel,$pkgname}.png
	mv ${DESTDIR}/usr/share/apps/{quassel,$pkgname}
	sed -i 's,Icon=quassel,Icon=quasselclient,g' ${DESTDIR}/usr/share/applications/quasselclient.desktop
}
