Files
chromebrew/packages/glab.rb
chromebrew-actions[bot] 1f7da61b33 updater-glab-1.67.0 — glab → 1.67.0 (#12588)
* Add unbuilt glab to updater-glab-1.67.0

* updater-glab-1.67.0: Build Run on linux/386.

* updater-glab-1.67.0: Build Run on linux/amd64.

* updater-glab-1.67.0: Build Run on linux/arm/v7.

---------

Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-08-21 18:46:52 +00:00

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.67.0'
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: 'baf5a3c60f705232f5914254420e81b835f44b3f8e17ed0225068f6ed346cd5b',
armv7l: 'baf5a3c60f705232f5914254420e81b835f44b3f8e17ed0225068f6ed346cd5b',
i686: 'b4cb0aa18f12ac6cb2cba9df00cdbb9663ed364c0d7284e55fbf66e14dc322a7',
x86_64: '0f3e6b78cc096c7ae81cfe2f40b078aaf28abfa3a1507bc22e57e53c63c64109'
})
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