name=go-md2man version=1.0.7 update_url="https://github.com/cpuguy83/$name/releases" update_names="/archive/v$version.tar.gz" # Go doesn't like being stripped options="!strip,$options" dlextract "https://github.com/cpuguy83/$name/archive/v$version/$name-$version.tar.gz" \ '2282a7a24635c63ca7bb08b5e07282fc' _ # Set up a fake GOPATH mkdir -p '.gopath/src/github.com/cpuguy83' ln -rs "$name-$version" ".gopath/src/github.com/cpuguy83/$name" export GOPATH="$PWD/.gopath" cd "$name-$version" go build -v -o "$name" "./$name" -in="$name.1.md" -out="$name.1" install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" "$name" install -Dm644 -t "$dir_install/$dir_prefix/$dir_man/man1" "$name.1" # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: