2011-11-21 07:52:25 +08:00
|
|
|
#
|
|
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-05-01 03:36:27 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
pkgbase=calligra
|
|
|
|
pkgname=('calligra-filters'
|
|
|
|
'calligra-interfaces'
|
|
|
|
'calligra-libs'
|
|
|
|
'calligra-plugins'
|
|
|
|
'calligra-pics'
|
|
|
|
'calligra-servicetypes'
|
|
|
|
'calligra-templates'
|
|
|
|
'calligra-tools'
|
|
|
|
'calligra-karbon'
|
|
|
|
'calligra-kexi'
|
|
|
|
'calligra-kounavail'
|
|
|
|
'calligra-plan'
|
|
|
|
'calligra-stage'
|
|
|
|
'calligra-krita'
|
2012-03-23 09:45:32 +08:00
|
|
|
'calligra-sheets'
|
2011-11-21 07:52:25 +08:00
|
|
|
'calligra-words'
|
|
|
|
'calligra-handbook'
|
|
|
|
'calligra-thesaurus-doc'
|
|
|
|
'calligra-braindump'
|
|
|
|
'calligra-flow')
|
2012-04-21 23:47:54 +08:00
|
|
|
pkgver=2.4.1
|
2012-05-01 06:07:38 +08:00
|
|
|
pkgrel=3
|
2011-11-21 07:52:25 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://www.calligra-suite.org'
|
|
|
|
license=('FDL1.2' 'GPL2' 'LGPL')
|
2012-03-23 09:45:32 +08:00
|
|
|
makedepends=('kdepimlibs' 'eigen' 'freetds' 'kdegraphics-okular' 'kdeedu-marble' 'xbase'
|
2011-11-21 07:52:25 +08:00
|
|
|
'libgsf' 'libwpd' 'libwpg' 'pstoedit' 'glew' 'gsl' 'cmake' 'automoc4' 'libspnav' 'libqtgtl'
|
|
|
|
'boost' 'libkdcraw' 'libpqxx' 'fftw' 'opengtl' 'docbook-xsl' 'create-resources' 'lcms2' 'qrencode' 'libdmtx')
|
|
|
|
groups=('calligra')
|
2012-05-01 06:07:38 +08:00
|
|
|
source=("http://mirrors.mit.edu/kde/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.bz2"
|
|
|
|
'KoColorSetwithQPointer.diff' 'Make_KoColorSet_QObject.diff')
|
2012-04-21 04:50:01 +08:00
|
|
|
screenshot=("http://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Calligra_Stage_2.4.png/800px-Calligra_Stage_2.4.png")
|
2012-05-01 06:07:38 +08:00
|
|
|
md5sums=('a4da7e1181e1539850a4fcae466d7d75'
|
|
|
|
'4fec7b571f43e1418855b77a29393e93'
|
|
|
|
'd4f068106218ebe97a3a8792151b993a')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"
|
2012-05-01 06:07:38 +08:00
|
|
|
patch -p1 -i "${srcdir}/KoColorSetwithQPointer.diff"
|
|
|
|
patch -p1 -i "${srcdir}/Make_KoColorSet_QObject.diff"
|
2012-04-13 08:17:49 +08:00
|
|
|
mkdir build
|
2011-11-21 07:52:25 +08:00
|
|
|
cd build
|
|
|
|
cmake ../${pkgbase}-${pkgver} \
|
2012-02-09 03:49:08 +08:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2011-11-21 07:52:25 +08:00
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DBUILD_active=OFF \
|
|
|
|
-DBUILD_mobile=OFF \
|
|
|
|
-DBUILD_mysql=OFF \
|
2012-04-13 06:34:51 +08:00
|
|
|
-DKDCRAW_LOCAL_FOUND=/usr/lib/libkdcraw.so \
|
|
|
|
-DIHAVEPATCHEDQT=1
|
2011-11-21 07:52:25 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-filters() {
|
|
|
|
pkgdesc="Filters for the Calligra office suite"
|
|
|
|
optdepends=('libgsf: Microsoft Word document importer'
|
|
|
|
'libwpd: WordPerfect document importer'
|
|
|
|
'libwpg: Corel WordPerfect Graphics image importer'
|
|
|
|
'pstoedit: Karbon EPS import filter'
|
|
|
|
'libkdcraw: support for raw images')
|
|
|
|
conflicts=('koffice-common' 'calligra-filters-git')
|
|
|
|
replaces=('koffice-common' 'calligra-filters-git')
|
|
|
|
install=calligra-filters.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/filters
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-interfaces() {
|
|
|
|
pkgdesc="Interfaces for the Calligra office suite"
|
|
|
|
depends=('calligra-libs')
|
|
|
|
conflicts=('koffice-common' 'calligra-interfaces-git')
|
|
|
|
replaces=('koffice-common' 'calligra-interfaces-git')
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/interfaces
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-libs() {
|
|
|
|
pkgdesc="Libraries for the Calligra office suite"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('kdepimlibs' 'lcms2' 'calligra-servicetypes' 'kdeedu-marble' 'create-resources' 'libspnav')
|
2011-11-21 07:52:25 +08:00
|
|
|
conflicts=('koffice-common' 'calligra-libs-git')
|
|
|
|
replaces=('koffice-common' 'calligra-libs-git')
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/libs
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-plugins() {
|
|
|
|
pkgdesc="Plugins for the Calligra office suite"
|
|
|
|
depends=('calligra-libs')
|
|
|
|
conflicts=('koffice-common' 'calligra-plugins-git')
|
|
|
|
replaces=('koffice-common' 'calligra-plugins-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
cd "${srcdir}"/build/plugins
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-pics() {
|
|
|
|
pkgdesc="Icons for the Calligra office suite"
|
|
|
|
depends=('calligra-libs')
|
|
|
|
conflicts=('koffice-common' 'calligra-pics-git')
|
|
|
|
replaces=('koffice-common' 'calligra-pics-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/pics
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-servicetypes() {
|
|
|
|
pkgdesc="Servicetypes for the Calligra office suite"
|
|
|
|
conflicts=('koffice-common' 'calligra-servicetypes-git')
|
|
|
|
replaces=('koffice-common' 'calligra-servicetypes-git')
|
|
|
|
install=calligra.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/servicetypes
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-templates() {
|
|
|
|
pkgdesc="Templates for the Calligra office suite"
|
|
|
|
conflicts=('koffice-common' 'calligra-templates-git')
|
|
|
|
replaces=('koffice-common' 'calligra-templates-git')
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/templates
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-tools() {
|
|
|
|
pkgdesc="Tools for the Calligra office suite"
|
2012-03-23 09:45:32 +08:00
|
|
|
depends=('calligra-sheets' 'calligra-words')
|
2011-11-21 07:52:25 +08:00
|
|
|
conflicts=('koffice-common' 'calligra-tools-git')
|
|
|
|
replaces=('koffice-common' 'calligra-tools-git')
|
|
|
|
install=calligra-tools.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/tools
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
2011-12-10 06:36:49 +08:00
|
|
|
#### package common files #####
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
#### package apps and their docs #####
|
|
|
|
|
|
|
|
package_calligra-karbon() {
|
|
|
|
pkgdesc="Create scalable vector drawings"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('calligra-libs' 'calligra-templates' 'hicolor-icon-theme')
|
2011-11-21 07:52:25 +08:00
|
|
|
provides=('karbon')
|
|
|
|
conflicts=('koffice-karbon' 'calligra-karbon-git')
|
|
|
|
replaces=('koffice-karbon' 'calligra-karbon-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('graphics')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-karbon.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/karbon
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-kexi() {
|
|
|
|
pkgdesc="Develop desktop database applications"
|
2012-03-23 09:45:32 +08:00
|
|
|
depends=('calligra-libs' 'calligra-sheets' 'sqlite3' 'xbase')
|
2011-11-21 07:52:25 +08:00
|
|
|
provides=('kexi')
|
|
|
|
conflicts=('koffice-kexi' 'calligra-kexi-git')
|
|
|
|
replaces=('koffice-kexi' 'calligra-kexi-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-kexi.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/kexi
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-kounavail() {
|
|
|
|
pkgdesc="Unavailable Calligra Document"
|
|
|
|
depends=('calligra-libs')
|
|
|
|
provides=('kounavail')
|
|
|
|
conflicts=('koffice-kounavail' 'calligra-kounavail-git')
|
|
|
|
replaces=('koffice-kounavail' 'calligra-kounavail-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
cd "${srcdir}"/build/kounavail
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-plan() {
|
|
|
|
pkgdesc="Calligra Project Management Component"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('calligra-words' 'hicolor-icon-theme' 'calligra-libs' 'kdepimlibs' 'calligra-templates' \
|
2011-11-21 07:52:25 +08:00
|
|
|
'calligra-plugins')
|
|
|
|
conflicts=('koffice-kplato' 'calligra-kplato-git')
|
|
|
|
replaces=('koffice-kplato' 'calligra-kplato-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-plan.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/plan
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-stage() {
|
|
|
|
pkgdesc="Write presentation documents"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('calligra-libs' 'calligra-templates' 'hicolor-icon-theme')
|
2011-11-21 07:52:25 +08:00
|
|
|
optdepends=('calligra-filters: import/export filters')
|
|
|
|
conflicts=('koffice-kpresenter' 'calligra-stage-git')
|
|
|
|
replaces=('koffice-kpresenter' 'calligra-stage-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-stage.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/stage
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-krita() {
|
|
|
|
pkgdesc="Edit and paint images"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('calligra-libs' 'calligra-templates' 'calligra-plugins' 'glew' 'qimageblitz' 'poppler-qt' 'openexr' 'opengtl' 'hicolor-icon-theme' 'shared-mime-info' 'lcms2' 'libqtgtl')
|
2011-11-21 07:52:25 +08:00
|
|
|
optdepends=('calligra-filters: import/export filters')
|
|
|
|
provides=('krita')
|
|
|
|
conflicts=('koffice-krita' 'calligra-krita-git')
|
|
|
|
replaces=('koffice-krita' 'calligra-krita-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('graphics')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-krita.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/krita
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
2012-03-23 09:45:32 +08:00
|
|
|
package_calligra-sheets() {
|
2011-11-21 07:52:25 +08:00
|
|
|
pkgdesc="Write spreadsheet documents"
|
2012-05-01 06:07:38 +08:00
|
|
|
depends=('calligra-libs' 'calligra-templates' 'calligra-plugins' 'gsl' 'hicolor-icon-theme')
|
2011-11-21 07:52:25 +08:00
|
|
|
optdepends=('calligra-filters: import/export filters')
|
2012-03-23 09:45:32 +08:00
|
|
|
conflicts=('koffice-kspread' 'calligra-tables-doc' 'calligra-tables' 'kformula')
|
|
|
|
replaces=('koffice-kspread' 'calligra-tables-doc' 'calligra-tables' 'kformula')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2012-03-23 09:45:32 +08:00
|
|
|
install=calligra-sheets.install
|
2011-11-21 07:52:25 +08:00
|
|
|
|
2012-03-23 09:45:32 +08:00
|
|
|
cd "${srcdir}"/build/sheets
|
2011-11-21 07:52:25 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-words() {
|
|
|
|
pkgdesc="Word Processor"
|
|
|
|
depends=('calligra-libs' 'calligra-templates' 'calligra-plugins' 'calligra-pics'
|
2012-05-01 06:07:38 +08:00
|
|
|
'calligra-kounavail' 'hicolor-icon-theme')
|
2011-11-21 07:52:25 +08:00
|
|
|
optdepends=('calligra-filters: import/export filters')
|
|
|
|
conflicts=('koffice-kword' 'calligra-words-git')
|
|
|
|
replaces=('koffice-kword' 'calligra-words-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-words.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/words
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-handbook() {
|
|
|
|
pkgdesc="Documentation for Calligra"
|
|
|
|
conflicts=('koffice-doc' 'koffice-common' 'calligra-handbook-git')
|
|
|
|
replaces=('koffice-doc' 'koffice-common' 'calligra-handbook-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('documentation')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
cd "${srcdir}"/build/doc/calligra
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-thesaurus-doc() {
|
|
|
|
pkgdesc="Documentation for Thesaurus"
|
|
|
|
conflicts=('koffice-doc' 'calligra-thesaurus-doc-git')
|
|
|
|
replaces=('koffice-doc' 'calligra-thesaurus-doc-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('documentation')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
cd "${srcdir}"/build/doc/thesaurus
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-braindump() {
|
|
|
|
pkgdesc="Notes and idea gathering"
|
2012-01-29 01:11:26 +08:00
|
|
|
depends=('calligra-libs')
|
2011-11-21 07:52:25 +08:00
|
|
|
conflicts=('calligra-braindump-git')
|
|
|
|
replaces=('calligra-braindump-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-braindump.install
|
|
|
|
|
|
|
|
cd "${srcdir}"/build/braindump
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_calligra-flow() {
|
|
|
|
pkgdesc="Flowchart & Diagram Editing"
|
2012-01-29 01:11:26 +08:00
|
|
|
depends=('calligra-libs')
|
2011-11-21 07:52:25 +08:00
|
|
|
install=calligra-flow.install
|
|
|
|
conflict=('calligra-flow-git')
|
|
|
|
replaces=('calligra-flow-git')
|
2012-03-06 07:57:58 +08:00
|
|
|
categories=('office')
|
2011-11-21 07:52:25 +08:00
|
|
|
|
|
|
|
cd "${srcdir}"/build/flow
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|