mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
29 lines
1.3 KiB
Ruby
29 lines
1.3 KiB
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_url ({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/has/1.1.0_armv7l/has-1.1.0-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/has/1.1.0_armv7l/has-1.1.0-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/has/1.1.0_i686/has-1.1.0-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/has/1.1.0_x86_64/has-1.1.0-chromeos-x86_64.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
|