aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/go-md2man/abuild
blob: f4d78df476d40c86cae17ca7aecfc3e211088600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
name=go-md2man
version=2.0.2
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"
}