mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Add unbuilt go to updater-go-1.25.4 * updater-go-1.25.4: Package File Update Run on linux/386 container. * updater-go-1.25.4: Package File Update Run on linux/amd64 container. * updater-go-1.25.4: Package File Update Run on linux/arm/v7 container. --------- Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
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.4'
|
|
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: 'ff86a6406310d840edb170f539a51a7efac0ac2b2f84527b1b2bf5935fc4ab6d',
|
|
armv7l: 'ff86a6406310d840edb170f539a51a7efac0ac2b2f84527b1b2bf5935fc4ab6d',
|
|
i686: '0cf5f721ab7c5e7a170dedb2b51d9b1fedfe6ef1b2c626bf7a47fb9a613c5d96',
|
|
x86_64: '9fa5ffeda4170de60f67f3aa0f824e426421ba724c21e133c1e35d6159ca1bec'
|
|
})
|
|
|
|
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
|