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.92.1' 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: '40724208d4cc299e425e3bdfb957a0339903d5899a6234be08c80217a1e51518', armv7l: '40724208d4cc299e425e3bdfb957a0339903d5899a6234be08c80217a1e51518', i686: '09ce69313ef260fa2d26f748874a9227fa878494cfb70bc5ef918d5eb4021bc4', x86_64: 'b95eba8934bb202d868c92c8b1b0806beccb456edaf096f02e2ac99e98a66b52' }) 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