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>
|
2017-01-03 19:35:47 +00:00
|
|
|
# - remove makedepend on vc
|
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
|
|
|
|
2017-01-03 19:35:47 +00:00
|
|
|
pkgname=calligra
|
|
|
|
pkgdesc="A set of applications for productivity and creative usage"
|
2017-03-31 12:52:32 +00:00
|
|
|
pkgver=3.0.1
|
2017-12-17 14:33:05 +00:00
|
|
|
pkgrel=9
|
|
|
|
arch=(x86_64)
|
2017-09-22 23:02:33 +00:00
|
|
|
url='https://www.calligra-suite.org/'
|
2017-12-17 14:33:05 +00:00
|
|
|
license=(FDL1.2 GPL2 LGPL)
|
|
|
|
depends=(kcmutils knotifyconfig kross kactivities kdiagram kreport libspnav kdelibs4support
|
|
|
|
gsl openexr kcontacts kcalcore qca-qt5 poppler-qt5 libodfgen qt5-webkit cauchy khtml)
|
|
|
|
makedepends=(extra-cmake-modules kdoctools python kdesignerplugin boost openjpeg akonadi-contacts
|
|
|
|
libwpg okular eigen marble-common pstoedit libvisio libetonyek libwps)
|
2017-01-03 19:35:47 +00:00
|
|
|
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'
|
|
|
|
'pstoedit: EPS to SVG filter'
|
|
|
|
'poppler: PDF to SVG filter'
|
2017-01-04 00:51:32 +00:00
|
|
|
'openjpeg: PDF to SVG filer')
|
2017-12-17 14:33:05 +00:00
|
|
|
conflicts=(calligra-devtools calligra-extras calligra-filters calligra-karbon karbon calligra-libs calligra-plan
|
|
|
|
calligra-plugins calligra-sheets calligra-stage calligra-words calligra-l10n calligra-meta
|
|
|
|
calligra-flow calligra-braindump calligra-gemini calligra-handbook)
|
|
|
|
replaces=(calligra-devtools calligra-extras calligra-filters calligra-karbon karbon calligra-libs calligra-plan
|
|
|
|
calligra-plugins calligra-sheets calligra-stage calligra-words calligra-l10n calligra-meta)
|
2017-01-03 19:35:47 +00:00
|
|
|
for _lang in bs ca ca@valencia cs da de el en_gb es et fi fr gl hu it ja kk nb nl \
|
|
|
|
pl pt pt_br ru sk sv uk zh_cn zh_tw; do
|
|
|
|
conflicts+=(calligra-l10n-$_lang)
|
|
|
|
replaces+=(calligra-l10n-$_lang)
|
|
|
|
done
|
2017-09-22 23:02:33 +00:00
|
|
|
source=("https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig}
|
2017-12-17 14:33:05 +00:00
|
|
|
calligra-kcalcore-17.12.patch::"https://cgit.kde.org/calligra.git/patch/?id=9a02a545"
|
2016-06-01 02:03:23 +00:00
|
|
|
'calligra-2.9.11-gcc6_arm.patch')
|
2017-03-31 12:52:32 +00:00
|
|
|
sha256sums=('452bddc4e03cfbf48de508b991dc94209d386d86bf010ea9d10afed0f5694db2'
|
2017-01-03 19:35:47 +00:00
|
|
|
'SKIP'
|
2017-12-17 14:33:05 +00:00
|
|
|
'83b8eff3e5fa50decf826b22912d0f77ae855c230c470ad4c260870a888cdce0'
|
2017-01-03 19:35:47 +00:00
|
|
|
'33d803c49abefc37f51f824543e889f9e369e86df9ce64d980e0a7dbca2ea27d')
|
2017-03-31 12:52:32 +00:00
|
|
|
validpgpkeys=(05D00A8B73A686789E0A156858B9596C722EA3BD # Boudewijn Rempt <foundation@krita.org>
|
|
|
|
42A60D06F449E895F40F09C01638B8A616108B8A) # Dag Andersen <danders@get2net.dk>
|
2016-06-01 01:01:16 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
2017-12-17 14:33:05 +00:00
|
|
|
patch -p1 -i ../calligra-kcalcore-17.12.patch # Fix build with kcalcore 17.12
|
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
|
2017-12-17 14:33:05 +00:00
|
|
|
cmake ../$pkgbase-$pkgver \
|
2017-01-04 13:21:10 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2016-06-01 01:01:16 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2017-12-17 14:33:05 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2017-01-03 19:35:47 +00:00
|
|
|
-DBUILD_TESTING=OFF
|
2016-06-01 01:01:16 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2017-01-03 19:35:47 +00:00
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
2016-06-01 01:01:16 +00:00
|
|
|
}
|