void-packages/srcpkgs/hub/template
2016-08-15 11:08:54 +02:00

25 lines
683 B
Bash

# Template file for 'hub'
pkgname=hub
version=2.2.5
revision=1
build_style=go
go_import_path="github.com/github/hub"
hostmakedepends="git"
homepage="http://hub.github.com/"
distfiles="https://github.com/github/hub/archive/v${version}.tar.gz"
short_desc="Command line tool for Github"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="MIT"
checksum=653cb1efed6d39348f630472b68f79b11704f52fdd7aebd82f7a6dbe18c32c59
pre_build() {
export GO15VENDOREXPERIMENT=1
}
post_install() {
vman man/${pkgname}.1
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
}