Add hub package

This commit is contained in:
Ed Reel
2017-06-17 12:42:26 -05:00
parent 9f9f885046
commit ed061d038c

21
packages/hub.rb Normal file
View File

@@ -0,0 +1,21 @@
require 'package'
class Hub < Package
description 'hub is a command-line wrapper for git that makes you better at GitHub.'
homepage 'https://hub.github.com/'
version '2.3.0-pre9'
source_url 'https://github.com/github/hub/archive/v2.3.0-pre9.tar.gz'
source_sha1 'd18f0a28d13b7e773186ece35df032f561d2172d'
depends_on 'go'
def self.install
system "script/build -o /usr/local/bin/hub"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp /usr/local/bin/hub #{CREW_DEST_DIR}/usr/local/bin"
puts ""
puts "You will need to add an alias in order to use hub as a git wrapper:".lightblue
puts "echo \"alias git=hub\" >> ~/.bashrc && source ~/.bashrc".lightblue
puts ""
end
end