# Maintainer: Felix Yan # Maintainer: Antonio Rojas # Contributor: Andrea Scarpino # Contributor: Ronald van Haren # ALARM: Kevin Mihelich # - remove makedepend on vc pkgname=calligra pkgdesc='A set of applications for productivity and creative usage' pkgver=3.2.1 pkgrel=32 arch=(x86_64) url='https://www.calligra-suite.org/' license=(FDL1.2 GPL2 LGPL) depends=(kcmutils knotifyconfig kross kactivities kdiagram libspnav kdelibs4support gsl imath kcontacts qca-qt5 poppler-qt5 libodfgen khtml kinit cauchy) makedepends=(extra-cmake-modules kdoctools kdesignerplugin libwpg okular eigen marble-common boost pstoedit libvisio libetonyek libwps libgit2 kcalendarcore akonadi) 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' 'libgit2: Calligra Gemini git plugin' 'kirigami2: for Calligra Gemini' 'qt5-quickcontrols: for Calligra Gemini' 'qt5-webengine: for Calligra Gemini') source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz{,.sig} calligra-openexr3.patch poppler-22.03.0.patch 068cd9ae.patch 2ac46db5.patch 62f51070.patch) sha256sums=('b1f8a6eb8208543a2f908caa83d089075fcd1e530d00e19f5362b2f9cc371147' 'SKIP' '96fbe4f06bf184e60ff653a1574f0f0523af5b4672ced2a501cd54642961dffe' '92593726793577e314ba25359450ee8c3f84b75fb4e99d9cd6baf4ca5df6d2d0' '4516d15421209e5d8c8b5008140dbcb1eefa96b0e96e0da49b343e1799a8cefd' 'c88e6d7a1f67c1b5413b624aa67fca2841205fdf4201f6682f69bae737582922' '8a94e076c09887ff0741da3276ce4652063351b884c66d4c9ba0cde431dbb867') validpgpkeys=(05D00A8B73A686789E0A156858B9596C722EA3BD # Boudewijn Rempt 42A60D06F449E895F40F09C01638B8A616108B8A) # Dag Andersen options=(debug) prepare() { patch -d $pkgname-$pkgver -p1 < calligra-openexr3.patch # Fix build with OpenEXR 3 patch -d $pkgname-$pkgver -p1 < poppler-22.03.0.patch # Fix build with poppler 22.03.0 patch -d $pkgname-$pkgver -p1 < 068cd9ae.patch # Remove dynamic exception specifications patch -d $pkgname-$pkgver -p1 < 2ac46db5.patch # Prerequisite for the following patch patch -d $pkgname-$pkgver -p1 < 62f51070.patch # Fix fontconfig linking } build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_CXX_STANDARD=17 \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build # Remove utterly broken thumbnailers rm "$pkgdir"/usr/lib/qt/plugins/calligra*thumbnail.so }