pkgbase=calligra pkgname=('calligra-braindump' 'calligra-devtools' 'calligra-extras' 'calligra-flow' 'calligra-gemini' 'calligra-handbook' 'calligra-karbon' 'calligra-kexi' 'calligra-krita' 'calligra-libs' 'calligra-plan' 'calligra-sheets' 'calligra-stage' 'calligra-words') pkgver=2.9.11 pkgrel=3 arch=('x86_64') url='http://www.calligra.org' screenshot=("http://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Calligra_Stage_2.4.png/800px-Calligra_Stage_2.4.png") license=('FDL1.2' 'GPL2' 'LGPL') makedepends=('automoc4' 'boost' 'cmake' 'create-resources' 'docbook-xsl' 'eigen3' 'fftw' 'freetds' 'glew' 'gsl' 'icu' 'kdegraphics-okular' 'kdelibs' 'kdepimlibs4' 'lcms2' 'libdmtx' 'libetonyek' 'libgit2' 'libgsf' 'libkdcraw' 'libmarble4' 'libmariadbclient' 'libodfgen' 'libpqxx' 'libspnav' 'libvisio' 'libwpd' 'libwpg' 'libwps' 'opencolorio' 'openjpeg' 'poppler-qt4' 'postgresql' 'pstoedit' 'qrencode' 'vc' 'xbase') options=("debug") groups=('calligra') source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz" 'libwps-0.4.patch') md5sums=('a1a4935debae64724cd4c0d17d61ae4e' '6ea15f8b3938838d89ea0aa08921afd1') build() { # Fix build against libwps 0.4 cd $pkgbase-$pkgver patch -p1 -i "$srcdir"/libwps-0.4.patch # Fix build against libmarble4 sed -e 's|PATH_SUFFIXES marble|PATH_SUFFIXES marble4|g' -i CMakeLists.txt sed -e 's|#include =0.24' 'vc') provides=('krita') categories=('graphics') install=calligra-krita.install cd build/krita make DESTDIR="${pkgdir}" install } package_calligra-libs() { pkgdesc="Libraries for Calligra" depends=('create-resources' 'icu' 'libkactivities4' 'libmarble4' 'kdepimlibs4' 'lcms2' 'libspnav' 'libvisio' 'libodfgen') optdepends=('libetonyek: Apple Keynote document importer' 'libgsf: Microsoft Word document importer' 'libkdcraw: support for raw images' 'libvisio: Microsoft Visio document importer' 'libwpg: Corel WordPerfect Graphics image importer' 'libwps: Microsoft Works document importer' 'pstoedit: Karbon EPS import filter') conflicts=('calligra-3rdparty' 'calligra-data' 'calligra-filters' 'calligra-interfaces' 'calligra-pics' 'calligra-plugins' 'calligra-servicetypes') replaces=('calligra-3rdparty' 'calligra-data' 'calligra-filters' 'calligra-interfaces' 'calligra-pics' 'calligra-plugins' 'calligra-servicetypes') install=calligra-libs.install for d in 3rdparty data filters interfaces libs pics plugins servicetypes; do cd "${srcdir}"/build/${d} make DESTDIR="${pkgdir}" install done } package_calligra-plan() { pkgdesc="Project management application" depends=('calligra-words' 'hicolor-icon-theme' 'calligra-libs' 'kdepimlibs') categories=('office') install=calligra-plan.install cd build/plan make DESTDIR="${pkgdir}" install } package_calligra-sheets() { pkgdesc="Spreadsheet application" depends=('calligra-libs' 'gsl' 'hicolor-icon-theme' 'kde-runtime') categories=('office') install=calligra-sheets.install cd build/sheets make DESTDIR="${pkgdir}" install } package_calligra-stage() { pkgdesc="Presentation application" depends=('calligra-libs' 'hicolor-icon-theme') categories=('office') install=calligra-stage.install cd build/stage make DESTDIR="${pkgdir}" install } package_calligra-words() { pkgdesc="Word processor" depends=('calligra-libs' 'hicolor-icon-theme') categories=('office') install=calligra-words.install cd build/words make DESTDIR="${pkgdir}" install }