Files
chromebrew/packages/has.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

24 lines
848 B
Ruby

require 'package'
class Has < Package
description 'Checks presence of various command line tools and their versions on the path'
homepage 'https://github.com/kdabir/has'
version '1.1.0'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/kdabir/has/archive/v1.1.0.tar.gz'
source_sha256 'e06d9674bc1b9281c1d4391ad4366d2ef249768e7b0ada304695bf954786e9c4'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '9eb67faf4e926a34f1c3e984dd31c47e90d7c67a35447b8f883619ef3ac89d99',
armv7l: '9eb67faf4e926a34f1c3e984dd31c47e90d7c67a35447b8f883619ef3ac89d99',
i686: '604bdece05ce6cb408d15b6079bd68961a78b3d9bd347ff8536e82b62231ff89',
x86_64: '8e08c20871f42de35e7d9bef82cc24e7d5ed9137752dac05c48f36467383a582'
})
def self.install
system "install -Dm755 has #{CREW_DEST_PREFIX}/bin/has"
end
end