archrelease: copy trunk to staging-x86_64
[arch-packages.git] / calligra / repos / testing-x86_64 / PKGBUILD
blob9a807074f304f683b08acef9ae4c7c682fe1d56e
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Ronald van Haren <ronald.archlinux.org>
6 pkgname=calligra
7 pkgdesc='A set of applications for productivity and creative usage'
8 pkgver=3.2.1
9 pkgrel=42
10 arch=(x86_64)
11 url='https://www.calligra-suite.org/'
12 license=(FDL1.2 GPL2 LGPL)
13 depends=(kcmutils knotifyconfig kross kactivities kdiagram libspnav kdelibs4support
14          gsl imath kcontacts qca-qt5 poppler-qt5 libodfgen khtml kinit cauchy)
15 makedepends=(extra-cmake-modules kdoctools kdesignerplugin libwpg okular eigen marble-common
16              boost pstoedit libvisio libetonyek libwps vc libgit2 kcalendarcore akonadi)
17 optdepends=('libwpg: Corel WordPerfect Graphics image importer'
18             'libwps: Microsoft Works file word processor format import'
19             'libvisio: Microsoft Visio import filter'
20             'libetonyek: Apple Keynote import filter'
21             'pstoedit: EPS to SVG filter'
22             'poppler: PDF to SVG filter'
23             'libgit2: Calligra Gemini git plugin'
24             'kirigami2: for Calligra Gemini'
25             'qt5-quickcontrols: for Calligra Gemini'
26             'qt5-webengine: for Calligra Gemini')
27 source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
28         calligra-openexr3.patch
29         068cd9ae.patch
30         2ac46db5.patch
31         62f51070.patch
32         https://invent.kde.org/office/calligra/-/commit/236bacbe.patch
33         https://invent.kde.org/office/calligra/-/commit/6b75bec7.patch)
34 sha256sums=('b1f8a6eb8208543a2f908caa83d089075fcd1e530d00e19f5362b2f9cc371147'
35             'SKIP'
36             '96fbe4f06bf184e60ff653a1574f0f0523af5b4672ced2a501cd54642961dffe'
37             '4516d15421209e5d8c8b5008140dbcb1eefa96b0e96e0da49b343e1799a8cefd'
38             'c88e6d7a1f67c1b5413b624aa67fca2841205fdf4201f6682f69bae737582922'
39             '8a94e076c09887ff0741da3276ce4652063351b884c66d4c9ba0cde431dbb867'
40             '94ce2242774d18df21dd594f2d9dce752ffda0349b2c2c872dfe39cb73353aab'
41             '0eb880b19f32fe4045831415fe5849e43db09be3f7550c4abfe21e4511dfb1a5')
42 validpgpkeys=(05D00A8B73A686789E0A156858B9596C722EA3BD  # Boudewijn Rempt <foundation@krita.org>
43               42A60D06F449E895F40F09C01638B8A616108B8A) # Dag Andersen <danders@get2net.dk>
45 prepare() {
46   patch -d $pkgname-$pkgver -p1 < calligra-openexr3.patch # Fix build with OpenEXR 3
47   patch -d $pkgname-$pkgver -p1 < 068cd9ae.patch # Remove dynamic exception specifications
48   patch -d $pkgname-$pkgver -p1 < 2ac46db5.patch # Prerequisite for the following patch
49   patch -d $pkgname-$pkgver -p1 < 62f51070.patch # Fix fontconfig linking
50   patch -d $pkgname-$pkgver -p1 < 236bacbe.patch # Fix build with poppler 22.03.0
51   patch -d $pkgname-$pkgver -p1 < 6b75bec7.patch # Fix build with poppler 22.04.0
54 build() {
55   cmake -B build -S $pkgname-$pkgver \
56     -DCMAKE_CXX_STANDARD=17 \
57     -DBUILD_TESTING=OFF
58   cmake --build build
61 package() {
62   DESTDIR="$pkgdir" cmake --install build
64 # Remove utterly broken thumbnailers
65   rm "$pkgdir"/usr/lib/qt/plugins/calligra*thumbnail.so