require 'package' class Github_cli < Package description 'Official Github CLI tool' homepage 'https://cli.github.com/' version '2.91.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: 'cfbe4e30bac224502d38be0e625d5956858560a67dc450f7a79f1c75a4d472e3', armv7l: 'cfbe4e30bac224502d38be0e625d5956858560a67dc450f7a79f1c75a4d472e3', i686: '01b62ebcc476bdaf7059fab2888da319357313444e7af43cd7a71bbc0e255810', x86_64: '304a0d2460f4a8847d2f192bad4e2a32cd9420d28716e7ae32198181b65b5f9c' }) 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