From a7b3a5726ac373a87aff94cdc746a6812dc02f9e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 10 Mar 2026 09:22:28 -0600 Subject: [PATCH] feat(pandoc): install man pages from release archive Pandoc archives include share/man/man1/pandoc*.1.gz alongside the binary. Move them into the versioned opt directory so they're available via MANPATH. --- pandoc/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandoc/install.sh b/pandoc/install.sh index 3cfa972..469a5ab 100644 --- a/pandoc/install.sh +++ b/pandoc/install.sh @@ -25,6 +25,12 @@ __init_pandoc() { # mv ./pandoc-*/pandoc ~/.local/opt/pandoc-v2.10.1/bin/pandoc mv ./pandoc-*/bin/pandoc "$pkg_src_cmd" + + # install man pages if present (share/man/man1/pandoc*.1.gz) + if test -d ./pandoc-*/share/man; then + mkdir -p "$pkg_src_dir/share" + mv ./pandoc-*/share/man "$pkg_src_dir/share/man" + fi } # pkg_get_current_version is recommended, but (soon) not required