mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Add hub package
This commit is contained in:
21
packages/hub.rb
Normal file
21
packages/hub.rb
Normal 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
|
||||
Reference in New Issue
Block a user