Files
chromebrew/packages/doctl.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

25 lines
798 B
Ruby

require 'package'
class Doctl < Package
description 'The official command line interface for the DigitalOcean API.'
homepage 'https://github.com/digitalocean/doctl'
version '1.100.0'
license 'Apache-2.0'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '9de72297695d143c82386eb728114e2169fc384922ce67fa4565050228f6a8ec',
armv7l: '9de72297695d143c82386eb728114e2169fc384922ce67fa4565050228f6a8ec',
x86_64: '87919f94bf861fc6b7f5c3320b75fff075553729774d4fc0afe4e6a2878ebc78',
i686: 'f568369579923bb53c52e628dad85904314a0d6e579c14ca004de298acf7a95d'
})
depends_on 'go' => :build
def self.install
system "GOBIN=#{CREW_DEST_PREFIX}/bin go install github.com/digitalocean/doctl/cmd/doctl@v#{version}"
end
end