Files
chromebrew/packages/hub.rb
2017-07-31 20:53:46 +09:00

23 lines
768 B
Ruby

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-pre10'
source_url 'https://github.com/github/hub/archive/v2.3.0-pre10.tar.gz'
source_sha256 '9b4764dc2647bc0c14de2bd386e6f428f002d93baf01059d994e1cfa928483fc'
depends_on 'git'
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