[arch-commits] Commit in ghostwriter/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Jul 23 10:01:10 UTC 2020


    Date: Thursday, July 23, 2020 @ 10:01:10
  Author: bgyorgy
Revision: 664988

upgpkg: ghostwriter 1.8.1-4: Some fixes

Modified:
  ghostwriter/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-23 08:46:55 UTC (rev 664987)
+++ PKGBUILD	2020-07-23 10:01:10 UTC (rev 664988)
@@ -6,7 +6,7 @@
 
 pkgname=ghostwriter
 pkgver=1.8.1
-pkgrel=3
+pkgrel=4
 pkgdesc="Aesthetic, distraction-free Markdown editor"
 arch=(x86_64)
 url="https://wereturtle.github.io/ghostwriter/"
@@ -14,6 +14,9 @@
 depends=(hunspell qt5-svg qt5-webengine)
 makedepends=(qt5-tools)
 optdepends=('cmark: processing and rendering CommonMark'
+            'cmark-gfm: processing and rendering GitHub Flavored Markdown'
+            'discount: processing and rendering Markdown'
+            'mathjax: formula rendering in live preview'
             'pandoc: Pandoc supported Markdown flavors and export to various formats')
 source=("https://github.com/wereturtle/ghostwriter/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
         "qt-5.15.patch")
@@ -23,6 +26,8 @@
 prepare() {
   cd $pkgname-$pkgver
   patch -Np1 -i ../qt-5.15.patch
+  sed -i 's/typeof window.MathJax.typeset !==/typeof window.MathJax !==/' resources/gw.js
+  sed -i 's|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js|file:///usr/share/mathjax/tex-mml-chtml.js|' src/HtmlPreview.cpp
   sed -i 's|DATADIR/appdata|DATADIR/metainfo|
           /INSTALLS +=/ s/ pixmap//' ghostwriter.pro
 }


More information about the arch-commits mailing list