mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* 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)
35 lines
991 B
Ruby
35 lines
991 B
Ruby
require 'package'
|
|
|
|
class Aliyun_cli < Package
|
|
description 'Alibaba Cloud CLI'
|
|
homepage 'https://www.alibabacloud.com/help/en/alibaba-cloud-cli'
|
|
version '3.0.141'
|
|
license 'Apache-2.0'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/aliyun/aliyun-cli.git'
|
|
git_hashtag "v#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'c7a970329f5f13c3d39fc359ab54c6b7bf686ba667c448d880116bb0be0b1770',
|
|
armv7l: 'c7a970329f5f13c3d39fc359ab54c6b7bf686ba667c448d880116bb0be0b1770',
|
|
i686: 'fcc4e000e51c55194cef9f6eb85336fa16a84b9e75913087cb8d9b52425b6aaf',
|
|
x86_64: '193916dd7e7c9604ebab5d4f7c3e4d9782bf5342f6eda7a53f6e20c41b70e126'
|
|
})
|
|
|
|
depends_on 'go' => :build
|
|
|
|
def self.build
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.install 'out/aliyun', "#{CREW_DEST_PREFIX}/bin", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
puts "\nType 'aliyun --help' to get started.\n".lightblue
|
|
end
|
|
end
|