extra/calligra to 2.9.6-3

This commit is contained in:
Kevin Mihelich 2015-08-23 16:23:39 +00:00
parent ca1de8a238
commit 56cf971af5

View file

@ -24,11 +24,11 @@ pkgname=('calligra-braindump'
'calligra-stage'
'calligra-words')
pkgver=2.9.6
pkgrel=2
pkgrel=3
arch=('i686' 'x86_64')
url='http://www.calligra-suite.org/'
license=('FDL1.2' 'GPL2' 'LGPL')
makedepends=('cmake' 'automoc4' 'boost' 'kdepimlibs' 'eigen' 'kdeedu-marble'
makedepends=('cmake' 'automoc4' 'boost' 'kdepimlibs' 'eigen' 'libmarble4'
'lcms2' 'libmariadbclient' 'freetds' 'xbase' 'libwpg' 'opencolorio'
'libwps' 'gsl' 'glew' 'fftw' 'poppler-qt' 'libkdcraw' 'libodfgen'
'openjpeg' 'kdegraphics-okular' 'pstoedit' 'libvisio'
@ -44,6 +44,11 @@ prepare() {
# 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 <marble/|#include <marble4/|g' -e 's|#include "marble/|#include "marble4/|g' \
-i plugins/reporting/maps/{*.cpp,*.h,marble/*.h} -i kexi/plugins/forms/widgets/mapbrowser/{*.cpp,*.h}
}
build() {
@ -53,7 +58,10 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_active=OFF \
-DWITH_Soprano=OFF
-DWITH_Soprano=OFF \
-DMARBLE_INCLUDE_DIR=/usr/include/marble4 \
-DMARBLE_GLOBAL_HEADER=/usr/include/marble4/MarbleGlobal.h \
-DMARBLE_LIBRARIES=/usr/lib/libmarblewidget.so
make
}
@ -91,7 +99,7 @@ package_calligra-libs() {
package_calligra-plugins() {
pkgdesc="Plugins for the Calligra office suite"
depends=('calligra-libs' 'calligra-filters' 'libspnav')
optdepends=('kdeedu-marble: map shape for Calligra')
optdepends=('libmarble4: map shape for Calligra')
conflicts=('koffice-plugins' 'koffice-kchart')
replaces=('koffice-plugins' 'koffice-kchart' 'koffice-kformula')
install=calligra-plugins.install
@ -124,7 +132,7 @@ package_calligra-kexi() {
'freetds: Sybase & MS SQL driver'
'xbase: XBase driver'
'calligra-sheets: Spreadsheet-to-Kexi-table import plugin'
'kdeedu-marble: map form widget'
'libmarble4: map form widget'
'calligra-plugins: extra calligra plugins')
conflicts=('koffice-kexi' 'koffice-kexi-doc' 'calligra-kexi-doc')
replaces=('koffice-kexi' 'koffice-kexi-doc' 'calligra-kexi-doc')