Commit c3170920 authored by Ed Reel's avatar Ed Reel

Update hub from 2.3.0-pre10 to 2.4.0

Add pre-built binaries
parent dbd91f8a
......@@ -3,33 +3,31 @@ 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'
version '2.4.0'
source_url 'https://github.com/github/hub/archive/v2.4.0.tar.gz'
source_sha256 '894eb112be9aa0464fa2c63f48ae8e573ef9e32a00bad700e27fd09a0cb3be4b'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.3.0-pre10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.3.0-pre10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.3.0-pre10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.3.0-pre10-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.4.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.4.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/hub-2.4.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '8b25ece4744967afd431ca2016d63f34ac63ffba866d0d208bb106ac080bd13b',
armv7l: '8b25ece4744967afd431ca2016d63f34ac63ffba866d0d208bb106ac080bd13b',
i686: '81aa10955f432703bd4bd2ecc01d038c013412508ca609e88d8ce59ebc50a751',
x86_64: '7a6926ac2c5ccdd73fb043873b891838c645febd80ef06dee58b9d636bede0fb',
aarch64: 'cf87b6f4db9da4397e2c3c8c91efe65f6d104238ebac43a74b5ff8e33ea71a79',
armv7l: 'cf87b6f4db9da4397e2c3c8c91efe65f6d104238ebac43a74b5ff8e33ea71a79',
i686: 'd2ee1d2942eeaec70926d93ea25dcf30d69fffa55bf017b25dd2a72c0d0a554e',
x86_64: '6b06e10fc0aa5ae7be07cd74bbae122eca0815d4e2c52dc92f5e11000282bf24',
})
depends_on 'git'
depends_on 'go'
depends_on 'go' => :build
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 ""
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
system "script/build -o #{CREW_DEST_PREFIX}/bin/hub"
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 ""
puts
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment