Files
chromebrew/packages/gox.rb
Ed Reel df801b93f5 Update binary_url to github in all packages (#5675)
Add gh.sh script to tools

Add .gitignore

Update download_binary.sh

Update README.md
2021-04-21 15:39:00 -04:00

33 lines
1.3 KiB
Ruby

require 'package'
class Gox < Package
description 'A dead simple, no frills Go cross compile tool.'
homepage 'https://github.com/mitchellh/gox'
version '0.4.0'
license 'MPL-2.0'
compatibility 'all'
source_url 'https://github.com/mitchellh/gox/archive/v0.4.0.tar.gz'
source_sha256 '2df7439e9901877685ff4e6377de863c3c2ec4cde43d0ca631ff65d1b64774ad'
binary_url ({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gox-0.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/gox-0.4.0-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/gox-0.4.0-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/gox-0.4.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'bd18d1ee7da98692c0aaa53e9016d16a7a2cb5ecf07236c340a2613b6837f087',
armv7l: 'bd18d1ee7da98692c0aaa53e9016d16a7a2cb5ecf07236c340a2613b6837f087',
i686: '70e31b0602ad26369b711a0f740391d43cd297b4a5d16c4d1a04bdb843f99fb0',
x86_64: 'd6d6c6c6d5aa168bea5c25a202c902d8b965040218a52291701c3e172d29c991',
})
depends_on 'go'
def self.install
system "go get github.com/mitchellh/iochan"
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "go build -o #{CREW_DEST_PREFIX}/bin/gox"
end
end