# -*- coding: ascii; tab-width: 4 -*-
Package: github
Version: 2.14.2
Revision: 1
Description: Command line interface to Git Hub
DescDetail: <<
	hub is a command line tool that wraps git in order to extend it with
	extra features and commands that make working with GitHub easier.

	hub is best aliased as git, so you can type 'git <command>' in the
	shell and get all the usual hub features.

	Note that the package name is 'github' instead of 'hub' since we
	already have a different 'hub' package, but the executable is still
	just 'hub'.
<<
DescUsage: <<
	Add
	eval "$(hub alias -s)"
	to .bash_profile to alias git to hub.
<<
License: BSD
Homepage: http://hub.github.com/
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>

Source: https://codeload.github.com/github/hub/tar.gz/v%v
Source-Checksum: SHA256(e19e0fdfd1c69c401e1c24dd2d4ecf3fd9044aa4bd3f8d6fd942ed1b2b2ad21a)
SourceRename: hub-%v.tar.gz

Depends: git
BuildDepends: go (>= 1.14.6-1)

PatchScript: <<
	perl -pi -e 's|script/bootstrap||' Makefile
<<

CompileScript: <<
	mkdir -p src/github.com/github
	ln -s %b src/github.com/github/hub
	GOPATH=%b make
	GOPATH=%b make man-pages
<<

InstallScript: <<
	GOPATH=%b make install prefix=%i
	
	install -d -m 0755 %i/etc/bash_completion.d
	install -m 0755 etc/hub.bash_completion.sh %i/etc/bash_completion.d
	
	install -d -m 0755 %i/share/zsh/templates/Library/init/zsh/zshrc_local.d
	install -m 0755 etc/hub.zsh_completion %i/share/zsh/templates/Library/init/zsh/zshrc_local.d
<<

DocFiles: CONTRIBUTING.md LICENSE README.md