# $Id: PKGBUILD 186022 2013-05-20 14:06:29Z stephane $ # Maintainer: Stéphane Gaudreault # Contributor: Andrea Scarpino # Contributor: James Rayner # Contributor: Sergio Jovani Guzman pkgname=konversation pkgver=1.4 pkgrel=6 pkgdesc="A user friendly IRC client for KDE" arch=('i686' 'x86_64') url="http://konversation.kde.org" depends=('kdebase-runtime' 'kdepimlibs') makedepends=('automoc4' 'cmake' 'pkgconfig' 'docbook-xml' 'optipng') optdepends=('python: python scripting support' 'kdebase-konsole: open a terminal in konversation' 'qca-ossl: Diffie-Hellman key exchange and Blowfish ECB/CBC support') license=('GPL2' 'FDL') install=${pkgname}.install options=('!makeflags') source=("http://download.kde.org/download.php?url=stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz") sha1sums=('90741721f68a02d4345b9006a8ae53bc49ef3777') prepare() { cd "$srcdir/$pkgname-$pkgver" # libpng16 fix find -name '*.png' -exec optipng -quiet -force -fix {} + } build() { cd "${srcdir}" mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install # Remove a bunch of symlinks pointing to non-existant files for _lang in pt_BR uk sv et de en nl; do rm "${pkgdir}"/usr/share/doc/kde/html/${_lang}/konversation/common done }