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.
This commit is contained in:
AJ ONeal
2026-03-10 09:22:28 -06:00
parent b08e678a83
commit a7b3a5726a

View File

@@ -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