44 lines
1 KiB
Bash
44 lines
1 KiB
Bash
# Template file for 'hub'
|
|
pkgname=hub
|
|
version=2.7.1
|
|
revision=1
|
|
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.org>"
|
|
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=83fac8b47b2f56da1e7366688df4bd0eeb5fa20bde5d3de39792ea1cc1d15cd4
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" hub"
|
|
fi
|
|
|
|
post_install() {
|
|
# Don't use bundled ronn
|
|
mkdir bin
|
|
ln -s /usr/bin/ronn bin/ronn
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -e 's|bin/hub|hub|g' -i 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
|
|
}
|