Files
chromebrew/packages/go_bootstrap.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

35 lines
1.0 KiB
Ruby

require 'package'
class Go_bootstrap < Package
description 'Bootstrap tool chain for the Go programming language.'
homepage 'https://golang.org/'
version '1.4-1'
license 'BSD'
compatibility 'all'
source_url 'https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz'
source_sha256 'f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'dd2aaa41eb1e27a50d9a805f0bbe4b0924bb2fd4ddeccbe2658fb7fd59f48956',
armv7l: 'dd2aaa41eb1e27a50d9a805f0bbe4b0924bb2fd4ddeccbe2658fb7fd59f48956',
i686: '661fb3c1c1fcebf6a00014e9e1074ee34ca5e60cbdde669b6a49c6931df5e034',
x86_64: 'd4a4c1fd6289e2fdbf031ed1da28f21b0f6e58f16e614f248f84f6fabab0555c'
})
def self.build
FileUtils.cd('src') do
system './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