mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
31 lines
1.2 KiB
Ruby
31 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Github_cli < Package
|
|
description 'Official Github CLI tool'
|
|
homepage 'https://cli.github.com/'
|
|
version '2.63.1'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_armv6.tar.gz",
|
|
armv7l: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_armv6.tar.gz",
|
|
i686: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_386.tar.gz",
|
|
x86_64: "https://github.com/cli/cli/releases/download/v#{version}/gh_#{version}_linux_amd64.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: 'b0e74d2495c88293a85002466838efbb23dcc065295edf93040b37274d90681f',
|
|
armv7l: 'b0e74d2495c88293a85002466838efbb23dcc065295edf93040b37274d90681f',
|
|
i686: '17678eca9365795140173aac44877fd496bf947b295f2761860661b0b17dd277',
|
|
x86_64: '09678eb6e5d14f18de1ee09c37b76e60c0ac1b968f5728f70e1bcb5367af01cd'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
no_strip # ./usr/local/bin/gh: 1: ./usr/local/bin/gh: Syntax error: redirection unexpected (expecting ")")
|
|
|
|
def self.install
|
|
FileUtils.install 'bin/gh', "#{CREW_DEST_PREFIX}/bin/gh", mode: 0o755
|
|
FileUtils.mv 'share', CREW_DEST_PREFIX
|
|
end
|
|
end
|