desktop/calligra/PKGBUILD

275 lines
7.0 KiB
Bash
Raw Normal View History

2011-11-21 07:52:25 +08:00
pkgbase=calligra
pkgname=('calligra-braindump'
'calligra-devtools'
'calligra-extras'
'calligra-flow'
'calligra-handbook'
2011-11-21 07:52:25 +08:00
'calligra-karbon'
'calligra-kexi'
'calligra-krita'
'calligra-libs'
'calligra-plan'
2012-03-23 09:45:32 +08:00
'calligra-sheets'
'calligra-stage'
'calligra-words')
2015-07-10 11:37:21 +08:00
pkgver=2.9.6
2015-02-26 07:25:21 +08:00
pkgrel=1
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")
2013-12-28 01:18:16 +08:00
license=('FDL1.2'
'GPL2'
'LGPL')
makedepends=('automoc4'
'boost'
'cmake'
'create-resources'
'docbook-xsl'
2015-02-26 07:25:21 +08:00
'eigen3'
2013-12-28 01:18:16 +08:00
'fftw'
'freetds'
'glew'
'gsl'
'icu'
'kdeedu-marble'
'kdegraphics-okular'
2013-12-30 01:23:28 +08:00
'kdelibs'
2013-12-28 01:18:16 +08:00
'kdepimlibs'
'lcms2'
2013-12-30 01:23:28 +08:00
'libdmtx'
2013-12-28 01:18:16 +08:00
'libgsf'
'libkdcraw'
'libmariadbclient'
2014-03-04 23:12:44 +08:00
'libodfgen'
2013-12-28 01:18:16 +08:00
'libpqxx'
'libspnav'
'libvisio'
'libwpd'
'libwpg'
'libwps'
'opencolorio'
'openjpeg'
'poppler-qt'
'pstoedit'
2013-12-30 01:23:28 +08:00
'qrencode'
2013-12-28 01:18:16 +08:00
'vc'
2014-03-30 08:20:41 +08:00
'xbase'
'freetype2')
options=("debug")
2011-11-21 07:52:25 +08:00
groups=('calligra')
2013-12-28 01:18:16 +08:00
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz")
2015-07-10 11:37:21 +08:00
md5sums=('a576450e8c0ea63b7dff50681a236d61')
2011-11-21 07:52:25 +08:00
build() {
2015-04-07 07:40:37 +08:00
cd "${srcdir}"
mkdir -p build && cd build
2013-12-28 01:18:16 +08:00
cmake "../${pkgbase}-${pkgver}" \
2014-01-13 23:07:46 +08:00
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
2013-12-28 01:18:16 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
2013-12-28 01:18:16 +08:00
-DBUILD_active=OFF
make
2011-11-21 07:52:25 +08:00
}
package_calligra-braindump() {
pkgdesc="Notetaking and mindmapping application"
2013-12-28 01:18:16 +08:00
depends=('calligra-libs'
'kde-runtime')
2013-12-28 01:18:16 +08:00
categories=('office')
install=calligra-braindump.install
2013-12-28 01:18:16 +08:00
cd build/braindump
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-devtools() {
pkgdesc="Developer utilities for Calligra"
2013-12-28 01:18:16 +08:00
depends=('calligra-libs')
cd build/devtools
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-extras() {
pkgdesc="User utilities for Calligra"
depends=('calligra-libs')
conflicts=('calligra-templates')
replaces=('calligra-templates')
install=calligra-extras.install
2013-12-28 01:18:16 +08:00
cd build/extras
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-flow() {
pkgdesc="Flowchart drawing application"
depends=('calligra-words'
'kde-runtime')
optdepends=('calligra-karbon: to export the charts in various formats')
install=calligra-flow.install
categories=('office')
2014-03-04 23:12:44 +08:00
cd build/flow
2014-03-04 23:12:44 +08:00
make DESTDIR="${pkgdir}" install
}
package_calligra-handbook() {
pkgdesc="Documentation for Calligra"
options=('docs')
categories=('documentation')
2013-12-28 01:18:16 +08:00
cd build/doc/calligra
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-karbon() {
2013-12-28 01:18:16 +08:00
pkgdesc="Vector graphics editor"
depends=('calligra-libs'
'hicolor-icon-theme'
'pstoedit')
optdepends=('calligra-extras: extra Calligra utilities')
2013-12-28 01:18:16 +08:00
provides=('karbon')
categories=('graphics')
install=calligra-karbon.install
cd build/karbon
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-kexi() {
2013-12-28 01:18:16 +08:00
pkgdesc="Visual database management frontend"
depends=('calligra-libs'
'fftw'
'glew'
'icu'
'sqlite3')
optdepends=('calligra-sheets'
'freetds'
'kdeedu-marble'
'libmariadbclient'
'libpqxx'
'xbase')
2013-12-28 01:18:16 +08:00
provides=('kexi')
categories=('office')
install=calligra-kexi.install
cd build/kexi
make DESTDIR="${pkgdir}" install
cd ../doc/kexi
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-krita() {
pkgdesc="Digital painting application"
depends=('calligra-libs'
'fftw'
'glew'
2015-03-18 06:31:18 +08:00
'curl'
'gsl'
'hicolor-icon-theme'
'kde-runtime'
'lcms2'
'libkdcraw'
'opencolorio'
'openexr'
'poppler-qt'
'qimageblitz'
'shared-mime-info'
2014-09-18 00:02:01 +08:00
'exiv2>=0.24'
'vc')
provides=('krita')
categories=('graphics')
install=calligra-krita.install
2013-12-28 01:18:16 +08:00
cd build/krita
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-libs() {
pkgdesc="Libraries for Calligra"
depends=('create-resources'
'icu'
'kactivities'
'kdeedu-marble'
'kdepimlibs'
'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
}
2011-11-21 07:52:25 +08:00
package_calligra-plan() {
2013-12-28 01:18:16 +08:00
pkgdesc="Project management application"
depends=('calligra-words'
'hicolor-icon-theme'
'calligra-libs'
'kdepimlibs')
2013-12-28 01:18:16 +08:00
categories=('office')
install=calligra-plan.install
cd build/plan
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-sheets() {
pkgdesc="Spreadsheet application"
2013-12-28 01:18:16 +08:00
depends=('calligra-libs'
'gsl'
2013-12-28 01:18:16 +08:00
'hicolor-icon-theme'
'kde-runtime')
categories=('office')
install=calligra-sheets.install
2013-12-28 01:18:16 +08:00
cd build/sheets
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-stage() {
pkgdesc="Presentation application"
2013-12-28 01:18:16 +08:00
depends=('calligra-libs'
'hicolor-icon-theme')
categories=('office')
install=calligra-stage.install
2013-12-28 01:18:16 +08:00
cd build/stage
2013-12-28 01:18:16 +08:00
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}
package_calligra-words() {
2013-12-28 01:18:16 +08:00
pkgdesc="Word processor"
depends=('calligra-libs'
'hicolor-icon-theme')
categories=('office')
install=calligra-words.install
cd build/words
make DESTDIR="${pkgdir}" install
2011-11-21 07:52:25 +08:00
}