Files
chromebrew/packages/go_bootstrap.rb
James Larrowe dc96990fd1 Unhardcode paths (#2782)
* Unhardcode paths

(fixed since last time)

* Misc. fixes

* More little fixes.

* Quoting fixes

* Fix quoting

* Unhardcode paths

Libcap fix

* Last little fixes
2018-10-26 13:38:09 -05:00

30 lines
743 B
Ruby

require 'package'
class Go_bootstrap < Package
description 'Bootstrap tool chain for the Go programming language.'
homepage 'https://golang.org/'
version '1.4-0'
source_url 'https://storage.googleapis.com/golang/go1.4-bootstrap-20161024.tar.gz'
source_sha256 '398c70d9d10541ba9352974cc585c43220b6d8dbcd804ba2c9bd2fbf35fab286'
binary_url ({
})
binary_sha256 ({
})
def self.build
FileUtils.cd('src') do
system "TMPDIR=#{CREW_PREFIX}/tmp ./make.bash"
end
end
def self.install
dest = "#{CREW_DEST_PREFIX}/share/go_bootstrap"
system "mkdir", "-p", dest
FileUtils.mv Dir.pwd, dest
puts "--------"
puts "Installed Go_bootstrap for #{ARCH} in #{CREW_PREFIX}/share/go_bootstrap"
end
end