require 'package' class Github_cli < Package description 'Official Github CLI tool' homepage 'https://cli.github.com/' version '2.87.2' 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: 'd2f644f3236b9e2586b35034e09e98d2187693169a2c19cf65facd098d14e629', armv7l: 'd2f644f3236b9e2586b35034e09e98d2187693169a2c19cf65facd098d14e629', i686: 'c3eeee50b038fce1f2454a0413b0ee4d257d7a3926507890adbee2199e2faacf', x86_64: '18360b2243e3bf9c1457035db45f6400ae4cf957dcc2f674e69717b4e0b14d55' }) 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