db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / ghostwriter / trunk / PKGBUILD
blob94a92db73f141a77bed3d9dc874a372fe1100e4d
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>
8 pkgname=ghostwriter
9 pkgver=23.04.0
10 pkgrel=1
11 pkgdesc='Aesthetic, distraction-free Markdown editor'
12 arch=(x86_64)
13 url='https://ghostwriter.kde.org/'
14 license=(GPL3)
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'
23             'SKIP')
24 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
25               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
26               D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
28 prepare() {
29   cd $pkgname-$pkgver
30   # Unbundle MathJax
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
36 build() {
37   cmake -B build -S $pkgname-$pkgver \
38     -DBUILD_TESTING=OFF
39   cmake --build build
42 package() {
43   DESTDIR="$pkgdir" cmake --install build