PKGBUILDs/extra/calligra/PKGBUILD

57 lines
2.3 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 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"
2020-05-15 00:13:48 +00:00
pkgver=3.2.1
2021-07-16 13:09:06 +00:00
pkgrel=16
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
2021-06-03 03:50:30 +00:00
gsl openexr kcontacts qca-qt5 poppler-qt5 libodfgen khtml cauchy)
2020-04-24 14:21:57 +00:00
makedepends=(extra-cmake-modules kdoctools kdesignerplugin kinit libwpg okular eigen marble-common
2020-05-14 13:58:22 +00:00
boost pstoedit libvisio libetonyek libwps libgit2 kcalendarcore akonadi)
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
'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')
2021-04-28 14:07:35 +00:00
source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz{,.sig}
2021-07-16 13:09:06 +00:00
calligra-openexr3.patch
62f51070.patch)
2020-05-15 00:13:48 +00:00
sha256sums=('b1f8a6eb8208543a2f908caa83d089075fcd1e530d00e19f5362b2f9cc371147'
2021-04-28 14:07:35 +00:00
'SKIP'
2021-07-16 13:09:06 +00:00
'0dec106deff4cff342021da4ca4e9759f0bbe5707ea2d4ee8536eaf863409cec'
'9e2a0797ce0667212ec07a3056435a4550e07371ff1f6eefdf65dc3642d24165')
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() {
2021-04-28 14:07:35 +00:00
patch -d $pkgname-$pkgver -p1 < calligra-openexr3.patch # Fix build with OpenEXR 3
2021-07-16 13:09:06 +00:00
patch -d $pkgname-$pkgver -p1 < 62f51070.patch # Fix fontconfig linking
2016-06-01 01:01:16 +00:00
}
build() {
2021-04-28 14:07:35 +00:00
cmake -B build -S $pkgname-$pkgver \
2017-01-03 19:35:47 +00:00
-DBUILD_TESTING=OFF
2021-04-28 14:07:35 +00:00
cmake --build build
2016-06-01 01:01:16 +00:00
}
2017-01-03 19:35:47 +00:00
package() {
2021-04-28 14:07:35 +00:00
DESTDIR="$pkgdir" cmake --install build
2020-10-15 13:44:39 +00:00
# Remove utterly broken thumbnailers
rm "$pkgdir"/usr/lib/qt/plugins/calligra*thumbnail.so
2016-06-01 01:01:16 +00:00
}