PKGBUILDs/extra/calligra/PKGBUILD

259 lines
7.7 KiB
Bash
Raw Normal View History

2014-03-05 19:39:48 +00:00
# $Id$
2013-05-21 20:03:48 +00:00
# Maintainer: 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
2013-05-22 01:56:48 +00:00
# - patch to fix qreal ARMisms
2013-05-21 20:03:48 +00:00
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'
'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')
2014-04-18 21:05:46 +00:00
pkgver=2.8.2
2014-03-29 18:11:44 +00:00
pkgrel=1
2013-05-21 20:03:48 +00:00
arch=('i686' 'x86_64')
url='http://www.calligra-suite.org/'
license=('FDL1.2' 'GPL2' 'LGPL')
makedepends=('cmake' 'automoc4' 'boost' 'kdepimlibs' 'eigen2' 'kdeedu-marble'
'lcms2' 'libmariadbclient' 'freetds' 'xbase' 'libwpg' 'opencolorio'
2014-03-05 19:39:48 +00:00
'libwps' 'gsl' 'glew' 'fftw' 'poppler-qt' 'libkdcraw' 'libodfgen'
'openjpeg' 'kdegraphics-okular' 'pstoedit' 'libvisio'
'libetonyek' 'libpqxx' 'libspnav')
2013-05-21 20:03:48 +00:00
groups=('calligra')
2013-08-05 16:03:06 +00:00
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz"
2014-03-05 19:39:48 +00:00
'arm.patch')
2014-04-18 21:05:46 +00:00
md5sums=('adb7d386dd2ec0cafdb39ce474bba73a'
2014-03-05 19:39:48 +00:00
'dc5105bcc612560f46d27071aca69cba')
2013-05-21 20:03:48 +00:00
2013-08-04 05:18:47 +00:00
prepare() {
2013-05-21 20:03:48 +00:00
mkdir build
2014-03-05 19:39:48 +00:00
# fix openjpeg detection
2014-01-24 13:09:42 +00:00
sed -i "s:/usr/include/openjpeg:/usr/include/openjpeg-1.5:" \
2014-03-05 19:39:48 +00:00
${pkgbase}-${pkgver}/cmake/modules/FindOpenJPEG.cmake
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 \
-DWITH_Soprano=OFF
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
conflicts=('koffice-filters')
replaces=('koffice-filters')
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"
2014-03-05 19:39:48 +00:00
depends=('kdepimlibs' 'kactivities')
2013-05-21 20:03:48 +00:00
conflicts=('koffice-interfaces' 'koffice-libs' 'koffice-pics'
2014-03-05 19:39:48 +00:00
'koffice-servicetypes' 'calligra-interfaces'
'calligra-pics' 'calligra-servicetypes')
2013-05-21 20:03:48 +00:00
replaces=('koffice-interfaces' 'koffice-libs' 'koffice-pics'
2014-03-05 19:39:48 +00:00
'koffice-servicetypes' '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')
2013-05-21 20:03:48 +00:00
optdepends=('kdeedu-marble: map shape for Calligra')
conflicts=('koffice-plugins' 'koffice-kchart')
replaces=('koffice-plugins' 'koffice-kchart' 'koffice-kformula')
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
conflicts=('koffice-karbon' 'koffice-karbon-doc' 'calligra-karbon-doc')
replaces=('koffice-karbon' 'koffice-karbon-doc' 'calligra-karbon-doc')
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'
'kdeedu-marble: 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')
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')
conflicts=('koffice-kplato' 'calligra-kplato')
replaces=('koffice-kplato' 'calligra-kplato')
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')
conflicts=('koffice-kpresenter' 'koffice-kpresenter-doc' 'calligra-stage-doc')
replaces=('koffice-kpresenter' 'koffice-kpresenter-doc' 'calligra-stage-doc')
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"
2014-01-26 16:22:28 +00:00
depends=('calligra-plugins' 'kdebase-runtime' 'opencolorio' 'libkdcraw'
'fftw' 'glew')
2013-05-21 20:03:48 +00:00
conflicts=('koffice-krita' 'calligra-krita-doc')
replaces=('koffice-krita' 'calligra-krita-doc')
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
conflicts=('koffice-kspread' 'koffice-kspread-doc' 'calligra-tables-doc' 'calligra-tables')
replaces=('koffice-kspread' 'koffice-kspread-doc' 'calligra-tables-doc' 'calligra-tables')
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"
depends=('calligra-plugins' 'kdegraphics-okular')
2013-10-12 06:34:18 +00:00
optdepends=('calligra-extras: extra calligra tools')
2013-05-21 20:03:48 +00:00
conflicts=('koffice-kword')
replaces=('koffice-kword')
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"
conflicts=('koffice-handbook')
replaces=('koffice-handbook')
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
conflicts=('calligra-flow-doc')
replaces=('calligra-flow-doc')
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')
2014-03-05 19:39:48 +00:00
conflicts=('calligra-tools' 'koffice-templates' 'calligra-templats')
replaces=('calligra-tools' 'koffice-templates' 'calligra-templats')
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
}