PKGBUILDs/extra/calligra/PKGBUILD

213 lines
5.6 KiB
Bash
Raw Normal View History

2016-06-01 01:01:16 +00:00
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - upstream patch for signed char on ARM
2016-06-01 02:03:23 +00:00
# - fedora patch to fix ARM build with GCC 6
2016-06-01 01:01:16 +00:00
pkgbase=calligra
pkgname=('calligra-braindump'
'calligra-devtools'
'calligra-extras'
'calligra-filters'
'calligra-flow'
'calligra-gemini'
'calligra-handbook'
'calligra-karbon'
'calligra-libs'
'calligra-plan'
'calligra-plugins'
'calligra-sheets'
'calligra-stage'
'calligra-words')
pkgver=2.9.11
2016-10-06 01:49:50 +00:00
pkgrel=7
2016-06-01 01:01:16 +00:00
arch=('i686' 'x86_64')
url='http://www.calligra-suite.org/'
license=('FDL1.2' 'GPL2' 'LGPL')
2016-10-06 01:49:50 +00:00
makedepends=('cmake' 'automoc4' 'boost' 'kdepimlibs4' 'eigen'
'lcms2' 'libwpg' 'libwps' 'gsl' 'glew' 'fftw' 'poppler-qt4' 'libodfgen'
'kdegraphics-okular' 'pstoedit' 'libvisio' 'libetonyek' 'libspnav')
2016-06-01 01:01:16 +00:00
groups=('calligra')
source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.xz" 'libwps-0.4.patch'
2016-06-01 02:03:23 +00:00
'https://github.com/KDE/calligra/commit/956bb80db4f300e4f8edeaf19d24fd61eb1932b2.patch'
'calligra-2.9.11-gcc6_arm.patch')
2016-06-01 01:01:16 +00:00
md5sums=('a1a4935debae64724cd4c0d17d61ae4e'
'6ea15f8b3938838d89ea0aa08921afd1'
2016-06-01 02:03:23 +00:00
'47305e6e25a076d5761e7b22a65b777e'
'6f40e8f90b21fd1b5fe9d57998fc2b3e')
2016-06-01 01:01:16 +00:00
prepare() {
mkdir -p build
# Fix build against libwps 0.4
cd $pkgbase-$pkgver
patch -p1 -i "$srcdir"/libwps-0.4.patch
# Fix build on ARM
patch -p1 -i ../956bb80db4f300e4f8edeaf19d24fd61eb1932b2.patch
2016-06-01 02:03:23 +00:00
patch -p1 -i ../calligra-2.9.11-gcc6_arm.patch
2016-06-01 01:01:16 +00:00
}
build() {
cd build
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_active=OFF \
-DWITH_Soprano=OFF \
-DBUILD_krita=OFF \
2016-10-06 01:49:50 +00:00
-DBUILD_kexi=OFF
2016-06-01 01:01:16 +00:00
make
}
package_calligra-filters() {
pkgdesc="Filters for the Calligra office suite"
depends=('libodfgen')
optdepends=('libwpg: Corel WordPerfect Graphics image importer'
'libwps: Microsoft Works file word processor format import'
'libvisio: Microsoft Visio import filter'
'libetonyek: Apple Keynote import filter')
cd build/filters
make DESTDIR="${pkgdir}" install
}
package_calligra-libs() {
pkgdesc="Libraries for the Calligra office suite"
depends=('kdepimlibs4' 'libkactivities4')
conflicts=('calligra-interfaces' 'calligra-pics' 'calligra-servicetypes')
replaces=('calligra-interfaces' 'calligra-pics' 'calligra-servicetypes')
for d in interfaces libs pics servicetypes; do
cd "${srcdir}"/build/${d}
make DESTDIR="${pkgdir}" install
done
}
package_calligra-plugins() {
pkgdesc="Plugins for the Calligra office suite"
depends=('calligra-libs' 'calligra-filters' 'libspnav')
cd build/plugins
make DESTDIR="${pkgdir}" install
cd ../3rdparty/kdchart
make DESTDIR="${pkgdir}" install
}
package_calligra-karbon() {
pkgdesc="Create scalable vector drawings"
depends=('calligra-libs' 'kdebase-runtime' 'pstoedit')
optdepends=('calligra-filters: import/export filters'
'calligra-extras: extra calligra tools')
cd build/karbon
make DESTDIR="${pkgdir}" install
}
package_calligra-plan() {
pkgdesc="Calligra Project Management Component"
depends=('calligra-words')
cd build/plan
make DESTDIR="${pkgdir}" install
cd ../3rdparty/kdgantt
make DESTDIR="${pkgdir}" install
}
package_calligra-stage() {
pkgdesc="Write presentation documents"
depends=('calligra-plugins' 'kdebase-runtime')
cd build/stage
make DESTDIR="${pkgdir}" install
cd ../doc/stage
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'
'calligra-extras: extra calligra tools')
cd build/sheets
make DESTDIR="${pkgdir}" install
cd ../doc/sheets
make DESTDIR="${pkgdir}" install
}
package_calligra-words() {
pkgdesc="Word Processor"
depends=('kdebase-runtime' 'calligra-plugins')
optdepends=('calligra-extras: extra calligra tools')
cd build/words
make DESTDIR="${pkgdir}" install
}
package_calligra-handbook() {
pkgdesc="Documentation for Calligra"
options=('docs')
cd build/doc/calligra
make DESTDIR="${pkgdir}" install
}
package_calligra-braindump() {
pkgdesc="Notes and idea gathering"
depends=('calligra-libs' 'kdebase-runtime')
cd build/braindump
make DESTDIR="${pkgdir}" install
}
package_calligra-flow() {
pkgdesc="Flowchart & Diagram Editing"
depends=('calligra-words')
optdepends=('calligra-karbon: to export the charts in various formats')
cd build/flow
make DESTDIR="${pkgdir}" install
}
package_calligra-extras() {
pkgdesc="Calligra suite extras"
depends=('calligra-libs')
optdepends=('kdegraphics-okular')
conflicts=('calligra-tools')
replaces=('calligra-tools')
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
make DESTDIR="${pkgdir}" install
}
package_calligra-gemini() {
pkgdesc="QML interface for Calligra Words and Stage"
depends=('calligra-words' 'calligra-stage')
# optdepends=('libqgit2: GIT plugin')
cd build/qtquick
make DESTDIR="${pkgdir}" install
cd "${srcdir}"/build/gemini
make DESTDIR="${pkgdir}" install
}