From 5314dce93dcfaef2b9c4c71e82fbf9e585c31904 Mon Sep 17 00:00:00 2001 From: Rodolfo Borges Date: Wed, 5 Feb 2025 18:17:18 -0300 Subject: [PATCH 1/2] add manpage to the lsd package I noticed that the `lsd` tool was missing a manpage, so I edited the template file to use pandoc to generate a manpage from the doc/lsd.md that was already present in the sources. --- srcpkgs/lsd/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/lsd/template b/srcpkgs/lsd/template index 42edb68e8f0b86..df8cfb1bbc625c 100644 --- a/srcpkgs/lsd/template +++ b/srcpkgs/lsd/template @@ -3,7 +3,7 @@ pkgname=lsd version=1.1.5 revision=1 build_style=cargo -hostmakedepends="pkg-config" +hostmakedepends="pkg-config pandoc" makedepends="libgit2-devel" checkdepends="git" short_desc="Next gen ls command with lots of pretty colors and awesome icons" @@ -24,8 +24,13 @@ fi export SHELL_COMPLETIONS_DIR="${wrksrc}" +pre_configure() { + pandoc -s -f markdown-smart -t man doc/lsd.md -o lsd.1 +} + post_install() { vcompletion lsd.bash bash vcompletion lsd.fish fish vcompletion _lsd zsh + vman lsd.1 } From b61882cd2c7c3be662cebd26a366267dc03f28ea Mon Sep 17 00:00:00 2001 From: Rodolfo Borges Date: Wed, 5 Feb 2025 22:19:53 -0300 Subject: [PATCH 2/2] revision update --- srcpkgs/lsd/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/lsd/template b/srcpkgs/lsd/template index df8cfb1bbc625c..f450a870063231 100644 --- a/srcpkgs/lsd/template +++ b/srcpkgs/lsd/template @@ -1,7 +1,7 @@ # Template file for 'lsd' pkgname=lsd version=1.1.5 -revision=1 +revision=2 build_style=cargo hostmakedepends="pkg-config pandoc" makedepends="libgit2-devel"