void-packages/srcpkgs/hub/template
2018-11-03 15:48:49 -03:00

42 lines
1 KiB
Bash

# Template file for 'hub'
pkgname=hub
version=2.6.0
revision=2
build_style=go
go_import_path=github.com/github/hub
hostmakedepends="git ruby-ronn"
short_desc="Command line tool for Github"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT"
homepage="https://hub.github.com/"
changelog="https://github.com/github/hub/releases"
distfiles="https://github.com/github/hub/archive/v${version}.tar.gz"
checksum=c4df5ce953aa5dd5c4fa57ada96559b4b76bbd30a9e961e10e881be869cf4f2c
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" hub"
fi
post_install() {
sed -i 's@1.ronn bin/ronn@1.ronn@;s@bin/ronn@ronn@' Makefile
if [ "$CROSS_BUILD" ]; then
sed -i 's|bin/hub|hub|g' Makefile
fi
make man-pages
for m in share/man/man1/*.1; do
vman $m
done
for d in share/man/man1/*.html; do
vdoc $d
done
vlicense LICENSE
vinstall etc/hub.zsh_completion 644 usr/share/zsh/site-functions _hub
vinstall etc/hub.bash_completion.sh 644 usr/share/bash-completion/completions hub
vinstall etc/hub.fish_completion 644 usr/share/fish/completions hub.fish
}