mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add gox package
This commit is contained in:
committed by
Kazushi (Jam) Marukawa
parent
39068e85e5
commit
a67b4c6a1b
16
packages/gox.rb
Normal file
16
packages/gox.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'package'
|
||||
|
||||
class Gox < Package
|
||||
description 'A dead simple, no frills Go cross compile tool.'
|
||||
homepage 'https://github.com/mitchellh/gox'
|
||||
version '0.3.0'
|
||||
source_url 'https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz'
|
||||
source_sha256 '29dc6b689f670a5444cc54cd9111549ccb01501901bc9197d0e1325a35157802'
|
||||
|
||||
depends_on 'go'
|
||||
|
||||
def self.install
|
||||
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
|
||||
system "go build -ldflags \"-X main.VERSION=v0.3.0\" -o #{CREW_DEST_DIR}/usr/local/bin/gox"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user