Commit bfe88813 authored by Ed Reel's avatar Ed Reel

Add hget package

Add pre-built binaries
parent a929acef
require 'package'
class Hget < Package
description 'interruptable, resumable download accelerator'
homepage 'https://github.com/huydx/hget'
version '8cff5f7'
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/hget-8cff5f7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/hget-8cff5f7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/hget-8cff5f7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/hget-8cff5f7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '5cd8050d079a49c9377a8e2ea91f90ab038a248ab2bf22a93a9fbab5689d1e96',
armv7l: '5cd8050d079a49c9377a8e2ea91f90ab038a248ab2bf22a93a9fbab5689d1e96',
i686: 'ba7f70141549d8d61be4dea806b34a36a895e06e8fb60c76caed3d3af937277f',
x86_64: '0dd19e6e75f73830d19f699fbb2a83145465e77ae03323d59346ddc7be543faf',
})
depends_on 'go' => :build
def self.install
ENV["GOPATH"] = "#{Dir.pwd}/go"
FileUtils.mkdir_p "#{Dir.pwd}/go/src"
system 'go get -d github.com/huydx/hget'
FileUtils.cd 'go/src/github.com/huydx/hget' do
system 'make', 'clean', 'install'
system "install -Dm755 bin/hget #{CREW_DEST_PREFIX}/bin/hget"
end
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