PKGBUILDs/extra/calligra/PKGBUILD

108 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 01:01:16 +00:00
2017-01-03 19:35:47 +00:00
pkgname=calligra
2021-07-20 19:02:28 +00:00
pkgdesc='A set of applications for productivity and creative usage'
2020-05-15 00:13:48 +00:00
pkgver=3.2.1
2024-06-16 16:08:08 +00:00
pkgrel=61
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)
2024-02-22 22:43:12 +00:00
depends=(cauchy
gcc-libs
glibc
gsl
imath
kactivities5
kcontacts5
kcoreaddons5
kdelibs4support
kdiagram5
kcmutils5
kinit
knotifyconfig5
kross
kwidgetsaddons5
libodfgen
libspnav
poppler-qt5
qca-qt5
qt5-base)
makedepends=(boost
eigen
extra-cmake-modules
kcalendarcore5
kdesignerplugin
kdoctools5
libakonadi5
libetonyek
libgit2
libvisio
libwpg
libwps
marble-common
pstoedit)
optdepends=('kirigami2: for Calligra Gemini'
2017-01-03 19:35:47 +00:00
'libetonyek: Apple Keynote import filter'
2018-01-28 21:05:23 +00:00
'libgit2: Calligra Gemini git plugin'
2024-02-22 22:43:12 +00:00
'libvisio: Microsoft Visio import filter'
'libwpg: Corel WordPerfect Graphics image importer'
'libwps: Microsoft Works file word processor format import'
'poppler: PDF to SVG filter'
'pstoedit: EPS to SVG filter'
2018-08-09 12:15:42 +00:00
'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
2022-01-08 18:59:53 +00:00
068cd9ae.patch
2ac46db5.patch
2022-05-07 18:23:30 +00:00
62f51070.patch
2024-05-03 12:22:02 +00:00
libgit2-1.8.patch
2022-05-07 18:23:30 +00:00
https://invent.kde.org/office/calligra/-/commit/236bacbe.patch
https://invent.kde.org/office/calligra/-/commit/6b75bec7.patch)
2020-05-15 00:13:48 +00:00
sha256sums=('b1f8a6eb8208543a2f908caa83d089075fcd1e530d00e19f5362b2f9cc371147'
2021-04-28 14:07:35 +00:00
'SKIP'
2021-12-20 19:36:03 +00:00
'96fbe4f06bf184e60ff653a1574f0f0523af5b4672ced2a501cd54642961dffe'
2022-01-08 18:59:53 +00:00
'4516d15421209e5d8c8b5008140dbcb1eefa96b0e96e0da49b343e1799a8cefd'
'c88e6d7a1f67c1b5413b624aa67fca2841205fdf4201f6682f69bae737582922'
2022-05-07 18:23:30 +00:00
'8a94e076c09887ff0741da3276ce4652063351b884c66d4c9ba0cde431dbb867'
2024-05-03 12:22:02 +00:00
'e79f1068a7c0bf9f4af63c379d3dc1e10bfa7f8c9953dfc172460cf14c9e7b55'
2022-05-07 18:23:30 +00:00
'94ce2242774d18df21dd594f2d9dce752ffda0349b2c2c872dfe39cb73353aab'
'0eb880b19f32fe4045831415fe5849e43db09be3f7550c4abfe21e4511dfb1a5')
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
2022-01-08 18:59:53 +00:00
patch -d $pkgname-$pkgver -p1 < 068cd9ae.patch # Remove dynamic exception specifications
patch -d $pkgname-$pkgver -p1 < 2ac46db5.patch # Prerequisite for the following patch
2021-07-16 13:09:06 +00:00
patch -d $pkgname-$pkgver -p1 < 62f51070.patch # Fix fontconfig linking
2022-05-07 18:23:30 +00:00
patch -d $pkgname-$pkgver -p1 < 236bacbe.patch # Fix build with poppler 22.03.0
patch -d $pkgname-$pkgver -p1 < 6b75bec7.patch # Fix build with poppler 22.04.0
2024-05-03 12:22:02 +00:00
patch -d $pkgname-$pkgver -p1 < libgit2-1.8.patch # Fix build with libgit2 1.8
2016-06-01 01:01:16 +00:00
}
build() {
2021-04-28 14:07:35 +00:00
cmake -B build -S $pkgname-$pkgver \
2024-05-09 12:50:08 +00:00
-DCMAKE_CXX_STANDARD=20 \
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
2024-02-22 22:43:12 +00:00
# Install service menus to KF6 path
install -d "$pkgdir"/usr/share/kio
mv "$pkgdir"/usr/share/{kservices5/ServiceMenus/calligra,kio/servicemenus}
rm -r "$pkgdir"/usr/share/kservices5/ServiceMenus
2016-06-01 01:01:16 +00:00
}