require 'package' class Github_cli < Package description 'Official Github CLI tool' homepage 'https://cli.github.com/' version '2.87.3' 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: 'aa855337ccb446d73216ea515dc10bba168f9b80b67b90dc2d2770e9ab3e8fd7', armv7l: 'aa855337ccb446d73216ea515dc10bba168f9b80b67b90dc2d2770e9ab3e8fd7', i686: '7fa02ef685603f215e5825b68f5f1065146747438ef8ea6f7989c51faa1c7d8b', x86_64: 'c6e5537631fca45f277ef405ce8751d139b491e9402cc20891a003525a8773b2' }) 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