PKGBUILDs/extra/calligra/PKGBUILD

254 lines
7.1 KiB
Bash
Raw Normal View History

2014-03-05 19:39:48 +00:00
# $Id$
2015-03-02 13:07:21 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
2015-11-05 13:08:34 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
2015-03-02 13:07:21 +00:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
2013-08-21 14:06:51 +00:00
# Contributor: Ronald van Haren <ronald.archlinux.org>
2013-05-21 20:03:48 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed makedepend on vc - not for ARM
pkgbase=calligra
2013-08-05 16:03:06 +00:00
pkgname=('calligra-braindump'
2014-03-05 19:39:48 +00:00
'calligra-devtools'
2013-08-05 16:03:06 +00:00
'calligra-extras'
'calligra-filters'
'calligra-flow'
2015-03-02 13:07:21 +00:00
'calligra-gemini'
2013-08-05 16:03:06 +00:00
'calligra-handbook'
2013-05-21 20:03:48 +00:00
'calligra-karbon'
'calligra-kexi'
'calligra-krita'
2013-08-05 16:03:06 +00:00
'calligra-libs'
'calligra-plan'
'calligra-plugins'
2013-05-21 20:03:48 +00:00
'calligra-sheets'
2013-08-05 16:03:06 +00:00
'calligra-stage'
'calligra-words')
2016-02-04 13:20:01 +00:00
pkgver=2.9.11
2016-03-03 14:20:58 +00:00
pkgrel=2
2013-05-21 20:03:48 +00:00
arch=('i686' 'x86_64')
url='http://www.calligra-suite.org/'
license=('FDL1.2' 'GPL2' 'LGPL')
2015-10-02 18:08:11 +00:00
makedepends=('cmake' 'automoc4' 'boost' 'kdepimlibs4' 'eigen' 'libmarble4'
2013-05-21 20:03:48 +00:00
'lcms2' 'libmariadbclient' 'freetds' 'xbase' 'libwpg' 'opencolorio'
2015-11-11 00:26:06 +00:00
'libwps' 'gsl' 'glew' 'fftw' 'poppler-qt4' 'libkdcraw4' 'libodfgen'
2014-03-05 19:39:48 +00:00
'openjpeg' 'kdegraphics-okular' 'pstoedit' 'libvisio'
2015-04-28 12:29:37 +00:00
'libetonyek' 'libpqxx' 'libspnav' 'postgresql') # 'libqgit2'
2013-05-21 20:03:48 +00:00
groups=('calligra')
2015-10-08 01:44:19 +00:00
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz" 'libwps-0.4.patch')
2016-02-04 13:20:01 +00:00
md5sums=('a1a4935debae64724cd4c0d17d61ae4e'
2015-10-08 01:44:19 +00:00
'6ea15f8b3938838d89ea0aa08921afd1')
2013-05-21 20:03:48 +00:00
2013-08-04 05:18:47 +00:00
prepare() {
2015-10-02 18:08:11 +00:00
mkdir -p build
2015-06-12 00:42:48 +00:00
# Fix build against libwps 0.4
cd $pkgbase-$pkgver
patch -p1 -i "$srcdir"/libwps-0.4.patch
2015-08-23 16:23:39 +00:00
# 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}
2013-08-04 05:18:47 +00:00
}
build() {
2013-05-21 20:03:48 +00:00
cd build
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2014-03-05 19:39:48 +00:00
-DCMAKE_INSTALL_LIBDIR=lib \
2014-03-09 15:53:38 +00:00
-DBUILD_active=OFF \
2015-08-23 16:23:39 +00:00
-DWITH_Soprano=OFF \
-DMARBLE_INCLUDE_DIR=/usr/include/marble4 \
-DMARBLE_GLOBAL_HEADER=/usr/include/marble4/MarbleGlobal.h \
-DMARBLE_LIBRARIES=/usr/lib/libmarblewidget.so
2013-05-21 20:03:48 +00:00
make
}
package_calligra-filters() {
pkgdesc="Filters for the Calligra office suite"
2014-03-05 19:39:48 +00:00
depends=('libodfgen')
2013-05-21 20:03:48 +00:00
optdepends=('libwpg: Corel WordPerfect Graphics image importer'
2014-01-24 13:09:42 +00:00
'libwps: Microsoft Works file word processor format import'
2014-03-05 19:39:48 +00:00
'libvisio: Microsoft Visio import filter'
'libetonyek: Apple Keynote import filter')
2013-05-21 20:03:48 +00:00
install=calligra-filters.install
2014-03-05 19:39:48 +00:00
cd build/filters
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-libs() {
pkgdesc="Libraries for the Calligra office suite"
2015-10-02 18:08:11 +00:00
depends=('kdepimlibs4' 'libkactivities4')
conflicts=('calligra-interfaces' 'calligra-pics' 'calligra-servicetypes')
replaces=('calligra-interfaces' 'calligra-pics' 'calligra-servicetypes')
2013-05-21 20:03:48 +00:00
2014-03-05 19:39:48 +00:00
for d in interfaces libs pics servicetypes; do
2013-05-21 20:03:48 +00:00
cd "${srcdir}"/build/${d}
make DESTDIR="${pkgdir}" install
done
}
package_calligra-plugins() {
pkgdesc="Plugins for the Calligra office suite"
2014-03-05 19:39:48 +00:00
depends=('calligra-libs' 'calligra-filters' 'libspnav')
2015-08-23 16:23:39 +00:00
optdepends=('libmarble4: map shape for Calligra')
2013-05-21 20:03:48 +00:00
install=calligra-plugins.install
2014-03-05 19:39:48 +00:00
cd build/plugins
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
2014-03-05 19:39:48 +00:00
cd ../3rdparty/kdchart
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-karbon() {
pkgdesc="Create scalable vector drawings"
depends=('calligra-libs' 'kdebase-runtime' 'pstoedit')
optdepends=('calligra-filters: import/export filters'
2013-10-12 06:34:18 +00:00
'calligra-extras: extra calligra tools')
2013-05-21 20:03:48 +00:00
install=calligra-karbon.install
2014-03-05 19:39:48 +00:00
cd build/karbon
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-kexi() {
pkgdesc="Develop desktop database applications"
depends=('calligra-libs' 'glew' 'fftw')
optdepends=('libmariadbclient: MariaDB driver'
2014-03-05 19:39:48 +00:00
'libpqxx: PostgreSQL driver'
2013-05-21 20:03:48 +00:00
'freetds: Sybase & MS SQL driver'
'xbase: XBase driver'
'calligra-sheets: Spreadsheet-to-Kexi-table import plugin'
2015-08-23 16:23:39 +00:00
'libmarble4: map form widget'
2013-05-21 20:03:48 +00:00
'calligra-plugins: extra calligra plugins')
install=calligra-kexi.install
2014-03-05 19:39:48 +00:00
cd build/kexi
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
2014-03-05 19:39:48 +00:00
cd ../doc/kexi
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-plan() {
pkgdesc="Calligra Project Management Component"
depends=('calligra-words')
install=calligra-plan.install
2014-03-05 19:39:48 +00:00
cd build/plan
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
2014-03-05 19:39:48 +00:00
cd ../3rdparty/kdgantt
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-stage() {
pkgdesc="Write presentation documents"
depends=('calligra-plugins' 'kdebase-runtime')
install=calligra-stage.install
2014-03-05 19:39:48 +00:00
cd build/stage
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
2014-03-05 19:39:48 +00:00
cd ../doc/stage
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-krita() {
pkgdesc="Edit and paint images"
2015-11-11 00:26:06 +00:00
depends=('calligra-plugins' 'kdebase-runtime' 'opencolorio' 'libkdcraw4'
2015-03-04 14:00:25 +00:00
'fftw' 'glew' 'curl' 'gsl')
2013-05-21 20:03:48 +00:00
install=calligra-krita.install
2014-03-05 19:39:48 +00:00
cd build/krita
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-sheets() {
pkgdesc="Write spreadsheet documents"
depends=('calligra-libs' 'gsl' 'kdebase-runtime')
optdepends=('calligra-filters: import/export filters'
'calligra-plugins: extra calligra plugins'
2013-10-12 06:34:18 +00:00
'calligra-extras: extra calligra tools')
2013-05-21 20:03:48 +00:00
install=calligra-sheets.install
2014-03-05 19:39:48 +00:00
cd build/sheets
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
2014-03-05 19:39:48 +00:00
cd ../doc/sheets
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-words() {
pkgdesc="Word Processor"
2014-12-05 16:15:45 +00:00
depends=('kdebase-runtime' 'calligra-plugins')
2013-10-12 06:34:18 +00:00
optdepends=('calligra-extras: extra calligra tools')
2013-05-21 20:03:48 +00:00
install=calligra-words.install
2014-03-05 19:39:48 +00:00
cd build/words
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-handbook() {
pkgdesc="Documentation for Calligra"
options=('docs')
2014-03-05 19:39:48 +00:00
cd build/doc/calligra
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-braindump() {
pkgdesc="Notes and idea gathering"
depends=('calligra-libs' 'kdebase-runtime')
install=calligra-braindump.install
2014-03-05 19:39:48 +00:00
cd build/braindump
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
package_calligra-flow() {
pkgdesc="Flowchart & Diagram Editing"
depends=('calligra-words')
2014-03-05 19:39:48 +00:00
optdepends=('calligra-karbon: to export the charts in various formats')
2013-05-21 20:03:48 +00:00
install=calligra-flow.install
2014-03-05 19:39:48 +00:00
cd build/flow
2013-05-21 20:03:48 +00:00
make DESTDIR="${pkgdir}" install
}
2013-08-05 16:03:06 +00:00
package_calligra-extras() {
pkgdesc="Calligra suite extras"
depends=('calligra-libs')
optdepends=('kdegraphics-okular')
2015-10-02 18:08:11 +00:00
conflicts=('calligra-tools')
replaces=('calligra-tools')
2013-08-05 16:03:06 +00:00
install=calligra-extras.install
2014-03-05 19:39:48 +00:00
cd build/extras
make DESTDIR="${pkgdir}" install
cd ../data
make DESTDIR="${pkgdir}" install
}
package_calligra-devtools() {
pkgdesc="Calligra developer tools"
depends=('calligra-libs')
cd build/devtools
2013-08-05 16:03:06 +00:00
make DESTDIR="${pkgdir}" install
}
2015-03-02 13:07:21 +00:00
package_calligra-gemini() {
pkgdesc="QML interface for Calligra Words and Stage"
depends=('calligra-words' 'calligra-stage')
2015-04-28 12:29:37 +00:00
# optdepends=('libqgit2: GIT plugin')
2015-03-02 13:07:21 +00:00
install=calligra-gemini.install
cd build/qtquick
make DESTDIR="${pkgdir}" install
cd "${srcdir}"/build/gemini
make DESTDIR="${pkgdir}" install
}