mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
33 lines
1.2 KiB
Ruby
33 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Glab < Package
|
|
description 'A GitLab CLI tool bringing GitLab to your command line'
|
|
homepage 'https://gitlab.com/gitlab-org/cli'
|
|
version '1.78.2'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://gitlab.com/gitlab-org/cli/-/releases/v#{version}/downloads/glab_#{version}_linux_armv6.tar.gz",
|
|
armv7l: "https://gitlab.com/gitlab-org/cli/-/releases/v#{version}/downloads/glab_#{version}_linux_armv6.tar.gz",
|
|
i686: "https://gitlab.com/gitlab-org/cli/-/releases/v#{version}/downloads/glab_#{version}_linux_386.tar.gz",
|
|
x86_64: "https://gitlab.com/gitlab-org/cli/-/releases/v#{version}/downloads/glab_#{version}_linux_amd64.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: 'b46edab6e8b1ffaa16b13762cc28080d8d7e4d97fedf21978069d9806c315de1',
|
|
armv7l: 'b46edab6e8b1ffaa16b13762cc28080d8d7e4d97fedf21978069d9806c315de1',
|
|
i686: '0f6d78806f7d24c96c985fb80c15a1ed0b610d56cd021d818e98568642314612',
|
|
x86_64: '64071cae1b6ff7881b022910752d734b6b6e44dcf8d67304cac7a3c64ce4e939'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
FileUtils.install 'bin/glab', "#{CREW_DEST_PREFIX}/bin/glab", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'glab' to get started.\n"
|
|
end
|
|
end
|