Files
chromebrew/packages/pup.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

26 lines
976 B
Ruby

require 'package'
class Pup < Package
description 'pup is a command line tool for processing HTML inspired by jq'
homepage 'https://github.com/ericchiang/pup'
version '0.4.0'
license 'MIT'
compatibility 'all'
case ARCH
when 'x86_64'
source_url "https://github.com/ericchiang/pup/releases/download/v#{version}/pup_v#{version}_linux_amd64.zip"
source_sha256 'ec3d29e9fb375b87ac492c8b546ad6be84b0c0b49dab7ff4c6b582eac71ba01c'
when 'aarch64', 'armv7l'
source_url "https://github.com/ericchiang/pup/releases/download/v#{version}/pup_v#{version}_linux_arm.zip"
source_sha256 'ebf70b3c76c02e0202c94af7ef06dcb3ecc866d1b9b84453d43fe01fa5dd5870'
when 'i686'
source_url "https://github.com/ericchiang/pup/releases/download/v#{version}/pup_v#{version}_linux_386.zip"
source_sha256 'e486b32ca07552cd3aa713cbf2f9d1b6e210ddb51d34b3090c7643f465828057'
end
def self.install
system "install -Dm755 pup #{CREW_DEST_PREFIX}/bin/pup"
end
end