PKGBUILDs/extra/calligra/PKGBUILD

91 lines
3.9 KiB
Bash
Raw Normal View History

2016-06-01 01:01:16 +00:00
# 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"
2018-01-28 21:05:23 +00:00
pkgver=3.1.0
2019-02-10 03:56:56 +00:00
pkgrel=15
2017-12-17 14:33:05 +00:00
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)
2018-03-10 13:13:59 +00:00
depends=(kcmutils knotifyconfig kross kactivities kdiagram libspnav kdelibs4support
2018-01-28 21:05:23 +00:00
gsl openexr kcontacts qca-qt5 poppler-qt5 libodfgen qt5-webkit cauchy khtml)
2018-04-21 14:08:00 +00:00
makedepends=(extra-cmake-modules kdoctools kdesignerplugin boost openjpeg akonadi-contacts
2018-01-28 21:05:23 +00:00
libwpg okular eigen marble-common pstoedit libvisio libetonyek libwps libgit2)
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'
2018-01-28 21:05:23 +00:00
'openjpeg: PDF to SVG filer'
'libgit2: Calligra Gemini git plugin'
2018-08-09 12:15:42 +00:00
'kirigami2: for Calligra Gemini'
'qt5-quickcontrols: for Calligra Gemini'
'qt5-webengine: for Calligra Gemini')
2018-01-28 21:05:23 +00:00
conflicts=(calligra-devtools calligra-extras calligra-filters calligra-karbon karbon calligra-libs
2017-12-17 14:33:05 +00:00
calligra-plugins calligra-sheets calligra-stage calligra-words calligra-l10n calligra-meta
calligra-flow calligra-braindump calligra-gemini calligra-handbook)
2018-01-28 21:05:23 +00:00
replaces=(calligra-devtools calligra-extras calligra-filters calligra-karbon karbon calligra-libs
2017-12-17 14:33:05 +00:00
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}
2018-11-03 13:34:23 +00:00
calligra-qt5.11.patch
calligra-poppler-0.69.patch::"https://cgit.kde.org/calligra.git/patch/?id=a6157182"
calligra-poppler-0.71.patch
2018-12-18 01:24:30 +00:00
calligra-poppler-0.72.patch
2019-01-19 15:57:39 +00:00
calligra-poppler-0.73.patch
2016-06-01 02:03:23 +00:00
'calligra-2.9.11-gcc6_arm.patch')
2018-01-28 21:05:23 +00:00
sha256sums=('6818cd6e64136321be217eb57cc7d6ac7c7035191fdb1ee336ebe60bc114e870'
2017-01-03 19:35:47 +00:00
'SKIP'
2018-08-09 12:15:42 +00:00
'40ac9fabed8e13c31f6f243bd7e9083c3ec322568991ba84987106b982ffc10a'
2018-12-18 01:24:30 +00:00
'127cc5e0946fbf741279306b4e9d592f5f901a7fab09039fcfc6c7e60193fa80'
2018-11-03 13:34:23 +00:00
'052adc4ea812d7667812ff7867e703327dbe7c1ecad86094fd6772dc09782d87'
2018-12-18 01:24:30 +00:00
'87a09710b9e7e825a46344ddec08eb98b3454d6d067b0177d284733b2342cece'
2019-01-19 15:57:39 +00:00
'ef95f49f69c9f2a5b530e416003f2d6d106bb3c85e8458ae27494c64c8b474a8'
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
2018-08-09 12:15:42 +00:00
cd $pkgname-$pkgver
# Fix build with Qt 5.11
patch -p1 -i ../calligra-qt5.11.patch
2018-10-30 00:13:07 +00:00
# Fix build with poppler 0.69
patch -p1 -i ../calligra-poppler-0.69.patch
2018-11-03 13:34:23 +00:00
# Fix build with poppler 0.71
patch -p1 -i ../calligra-poppler-0.71.patch
2018-12-18 01:24:30 +00:00
# Fix build with poppler 0.72
patch -p1 -i ../calligra-poppler-0.72.patch
2019-01-19 15:57:39 +00:00
# Fix build with poppler 0.73
patch -p1 -i ../calligra-poppler-0.73.patch
2018-08-09 12:15:42 +00:00
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 \
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
}