require 'package' class Github_cli < Package description 'Official Github CLI tool' homepage 'https://cli.github.com/' version '2.86.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: 'ddbc4e9ec755b3872d752276685741b967684f64bde88f321af1ffe1dec2140c', armv7l: 'ddbc4e9ec755b3872d752276685741b967684f64bde88f321af1ffe1dec2140c', i686: '98d0641f624f09d40df8d3a5844179e4d446223c174757036702b978f988ea86', x86_64: 'f3b08bd6a28420cc2229b0a1a687fa25f2b838d3f04b297414c1041ca68103c7' }) 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