mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
34 lines
1.3 KiB
Ruby
34 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Go < Package
|
|
description 'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.'
|
|
homepage 'https://go.dev'
|
|
version '1.25.3'
|
|
license 'BSD'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://go.dev/dl/go#{version}.linux-armv6l.tar.gz",
|
|
armv7l: "https://go.dev/dl/go#{version}.linux-armv6l.tar.gz",
|
|
i686: "https://go.dev/dl/go#{version}.linux-386.tar.gz",
|
|
x86_64: "https://go.dev/dl/go#{version}.linux-amd64.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: '3992bd28316484be0af36494124588581aa27e0659a436d607b11d534045bc1f',
|
|
armv7l: '3992bd28316484be0af36494124588581aa27e0659a436d607b11d534045bc1f',
|
|
i686: 'acb585c13e7acb10e3b53743c39a7996640c745dffd7d828758786bde92f44ca',
|
|
x86_64: '0335f314b6e7bfe08c3d0cfaa7c19db961b7b99fb20be62b0a826c992ad14e0f'
|
|
})
|
|
|
|
conflicts_ok # FIXME: Remove this when file conflicts between go and gcc are fixed
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/go"
|
|
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/go"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/go/bin/go", "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/go/bin/gofmt", "#{CREW_DEST_PREFIX}/bin"
|
|
end
|
|
end
|