1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Jakob Gahde <j5lx@fmail.co.uk>
4 # Contributor: Bastien "neitsab" Traverse <firstname [at] lastname [dot] email>
5 # Contributor: Icaro Perseo <icaroperseo[at]protonmail[dot]com>
6 # Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
11 pkgdesc='Aesthetic, distraction-free Markdown editor'
13 url='https://ghostwriter.kde.org/'
15 groups=(kde-applications kde-office)
16 depends=(hunspell qt5-webengine kxmlgui sonnet)
17 makedepends=(extra-cmake-modules kdoctools qt5-tools)
18 optdepends=('cmark: processing and rendering CommonMark'
19 'mathjax: formula rendering in live preview'
20 'pandoc: Pandoc supported Markdown flavors and export to various formats')
21 source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
22 sha256sums=('3d0c7ca8b36459c831699a4f4c691a9452a5cd89b2e4f8260aeaf4a4d2d3bcfa'
24 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
25 F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org>
26 D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
31 sed -i 's/typeof window.MathJax !==/typeof window.MathJax.typeset !==/' resources/preview.html
32 sed -i 's|qrc:3rdparty/MathJax/bin/tex-svg-full.js|file:///usr/share/mathjax/tex-svg-full.js|' resources/preview.html
33 sed -i '/MathJax/d' resources.qrc
37 cmake -B build -S $pkgname-$pkgver \
43 DESTDIR="$pkgdir" cmake --install build