aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/go-md2man/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-09-12 03:06:35 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-09-12 03:06:35 +0800
commit074ddb6661dc348f641eefbf33b5d66f432275b6 (patch)
tree00afc4476902708728354e0e51ef6980fa2dc9ba /repos/extra/go-md2man/abuild
parent46b6f93f877f3a464c6c4a0266d537c1967912ed (diff)
downloadalicelinux-074ddb6661dc348f641eefbf33b5d66f432275b6.tar.gz
alicelinux-074ddb6661dc348f641eefbf33b5d66f432275b6.zip
go-md2man: new added
Diffstat (limited to 'repos/extra/go-md2man/abuild')
-rw-r--r--repos/extra/go-md2man/abuild14
1 files changed, 14 insertions, 0 deletions
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"
+}