diff --git a/srcpkgs/Marker/patches/elf_files_in_lib.patch b/srcpkgs/Marker/patches/elf_files_in_lib.patch
deleted file mode 100644
index 63d2cc5f696..00000000000
--- a/srcpkgs/Marker/patches/elf_files_in_lib.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -ruN Marker/meson.build Marker1/meson.build
---- Marker/meson.build 2019-11-06 14:44:46.000000000 +0200
-+++ Marker1/meson.build 2019-12-06 22:39:56.434367811 +0200
-@@ -5,13 +5,14 @@
-
- PREFIX = get_option('prefix')
- DATA_DIR = join_paths(PREFIX, 'share')
-+LIBS_DIR = join_paths(PREFIX, 'lib')
- APP_DIR = join_paths(DATA_DIR, 'com.github.fabiocolacio.marker')
- ICONS_DIR = join_paths(APP_DIR, 'icons')
- STYLES_DIR = join_paths(APP_DIR, 'styles')
- COMMON_DIR = join_paths(APP_DIR, 'common')
- SCRIPTS_DIR = join_paths(APP_DIR, 'scripts')
- HIGHLIGHT_STYLES_DIR = join_paths(join_paths(SCRIPTS_DIR, 'highlight'),'styles')
--WEB_EXTENSIONS_DIRECTORY = join_paths(APP_DIR, 'extensions')
-+WEB_EXTENSIONS_DIRECTORY = join_paths(LIBS_DIR, 'Marker.extensions')
- APPDATA_DIR = join_paths(DATA_DIR, 'metainfo')
- LOCALE_DIR = join_paths(PREFIX, get_option('localedir'))
-
diff --git a/srcpkgs/Marker/patches/system-mathjax.patch b/srcpkgs/Marker/patches/system-mathjax.patch
deleted file mode 100644
index 1ef9fde3693..00000000000
--- a/srcpkgs/Marker/patches/system-mathjax.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/marker-markdown.c
-+++ b/src/marker-markdown.c
-@@ -87,8 +87,7 @@ char* html_header(MarkerMathJSMode ma
- } else
- {
- mathjs_css = g_strdup(" ");
-- mathjs_script = g_strdup_printf("",
-- SCRIPTS_DIR);
-+ mathjs_script = g_strdup("");
- mathjs_auto = g_strdup(" ");
- }
- break;
diff --git a/srcpkgs/Marker/template b/srcpkgs/Marker/template
index 1bc21fc3937..0bcf2f8f9f4 100644
--- a/srcpkgs/Marker/template
+++ b/srcpkgs/Marker/template
@@ -1,22 +1,36 @@
# Template file for 'Marker'
pkgname=Marker
-version=2020.04.04
-revision=3
+version=2023.05.02
+revision=1
+_scidown_commit=a7b7f063de4f272ef0ec12d00b98470888e8cb32
+_charter_commit=a25dee1214ea9ba5882325066555cb813efbb489
+_tinyexpr_commit=9476568b69de4c384903f1d5f255907b92592f45
+build_wrksrc="Marker-${version}"
build_style=meson
hostmakedepends="glib-devel pkg-config itstool gettext"
makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel
- webkit2gtk-devel"
-depends="iso-codes mathjax2"
+ libwebkit2gtk41-devel"
+depends="iso-codes"
short_desc="Gtk3 markdown editor"
maintainer="Enno Boland "
-license="GPL-3.0-or-later, ISC"
+license="GPL-3.0-or-later, ISC, Zlib"
homepage="https://fabiocolacio.github.io/Marker/"
-distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
-checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
+distfiles="https://github.com/fabiocolacio/Marker/archive/refs/tags/${version}.tar.gz
+ https://github.com/Mandarancio/scidown/archive/${_scidown_commit}.tar.gz
+ https://github.com/Mandarancio/charter/archive/${_charter_commit}.tar.gz
+ https://github.com/codeplea/tinyexpr/archive/${_tinyexpr_commit}.tar.gz"
+checksum="097a6e3811f0c4c14c574b8aafee27ee62232ae3ad3084e18a35c2dc8a1e93dd
+ 31e63658e2e79b5c5b0497d568e548f177fc89cb1dd9b6d78aba7685f0506ff0
+ 60237a813383b44891e57049ba1f86cc5b89c28eee620b6ee90582a0c7ba6f8a
+ 1c0c9496d9e9b693ae364860f0b66c403b87337db1b5a78275a0c78a07495286"
post_extract() {
- # don't include bundled mathjax
- rm -rf data/scripts/mathjax
+ rmdir "${build_wrksrc}/src/scidown"
+ mv "scidown-${_scidown_commit}" "${build_wrksrc}/src/scidown"
+ rmdir "${build_wrksrc}/src/scidown/src/charter"
+ mv "charter-${_charter_commit}" "${build_wrksrc}/src/scidown/src/charter"
+ rmdir "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
+ mv "tinyexpr-${_tinyexpr_commit}" "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
}
post_install() {