Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
696 B

name=go-md2man
version=1.0.7
update_url="https://github.com/cpuguy83/$name/releases"
update_names="/archive/v$version.tar.gz"
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: