require 'package' class Github_cli < Package description 'Official Github CLI tool' homepage 'https://cli.github.com/' version '2.90.0' 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: '51114ce4018701c1afaba921a794859aca91d2845ce128cf8c4bbe616fd24949', armv7l: '51114ce4018701c1afaba921a794859aca91d2845ce128cf8c4bbe616fd24949', i686: 'ea6b87cb937065a3e0b99a6d368132c58b8bca90cc9f54756335257ec75793d0', x86_64: 'b2aef7b23ec6899bf27f37a32c57a7935d0a178568ac33dc9bb03842f724195a' }) 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