From 074ddb6661dc348f641eefbf33b5d66f432275b6 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Fri, 12 Sep 2025 03:06:35 +0800 Subject: go-md2man: new added --- repos/extra/go-md2man/.checksum | 1 + repos/extra/go-md2man/.files | 7 +++++++ repos/extra/go-md2man/abuild | 14 ++++++++++++++ repos/extra/go-md2man/depends | 1 + 4 files changed, 23 insertions(+) create mode 100644 repos/extra/go-md2man/.checksum create mode 100644 repos/extra/go-md2man/.files create mode 100644 repos/extra/go-md2man/abuild create mode 100644 repos/extra/go-md2man/depends diff --git a/repos/extra/go-md2man/.checksum b/repos/extra/go-md2man/.checksum new file mode 100644 index 00000000..571632a5 --- /dev/null +++ b/repos/extra/go-md2man/.checksum @@ -0,0 +1 @@ +59465eee87976190ead1df77276bd17aad4fbf062bd2bdadb25bb8f44515d97b go-md2man-v2.0.7.tar.gz diff --git a/repos/extra/go-md2man/.files b/repos/extra/go-md2man/.files new file mode 100644 index 00000000..3924265e --- /dev/null +++ b/repos/extra/go-md2man/.files @@ -0,0 +1,7 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/go-md2man +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rwxr-xr-x root/root usr/share/man/man1/go-md2man.1.gz diff --git a/repos/extra/go-md2man/abuild b/repos/extra/go-md2man/abuild new file mode 100644 index 00000000..564aa081 --- /dev/null +++ b/repos/extra/go-md2man/abuild @@ -0,0 +1,14 @@ +name=go-md2man +version=2.0.7 +release=1 +source="https://github.com/cpuguy83/${name}/archive/v${version}/${name}-v${version}.tar.gz" + +build() { + export GOPATH="$PWD/go" + export GOFLAGS="-buildmode=pie -trimpath" + export CGO_LDFLAGS="$LDFLAGS" + go build -o go-md2man . + ./go-md2man -in=go-md2man.1.md -out=go-md2man.1 + install -Dm755 go-md2man "$PKG/usr/bin/go-md2man" + install -Dm755 go-md2man.1 "$PKG/usr/share/man/man1/go-md2man.1" +} diff --git a/repos/extra/go-md2man/depends b/repos/extra/go-md2man/depends new file mode 100644 index 00000000..4023f209 --- /dev/null +++ b/repos/extra/go-md2man/depends @@ -0,0 +1 @@ +go -- cgit v1.2.3