mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* aliyun_cli => 3.0.284 * Update aliyun_cli.rb * Update aliyun_cli.rb * Add built packages for linux/386 to update-aliyun_cli * Add built packages for linux/amd64 to update-aliyun_cli * Add built packages for linux/arm/v7 to update-aliyun_cli --------- Co-authored-by: SupeChicken666 <supechicken666@gmail.com> Co-authored-by: supechicken <supechicken@users.noreply.github.com>
36 lines
1004 B
Ruby
36 lines
1004 B
Ruby
require 'package'
|
|
|
|
class Aliyun_cli < Package
|
|
description 'Alibaba Cloud CLI'
|
|
homepage 'https://www.alibabacloud.com/help/en/cli/'
|
|
version '3.0.284'
|
|
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: 'a726a92f31f664651d9c1825233b982ad2c6101f2fc0c6919551cd146b9a4f9f',
|
|
armv7l: 'a726a92f31f664651d9c1825233b982ad2c6101f2fc0c6919551cd146b9a4f9f',
|
|
i686: 'b49ad1682730316ae9ea6372e223e9ec956625647fddf7a98b69d11fc94117f1',
|
|
x86_64: '0a38c742a241d689fa932b78fd3b1f43e64a13386089ef43ce38a163c0112ca7'
|
|
})
|
|
|
|
depends_on 'go' => :build
|
|
depends_on 'glibc' # R
|
|
|
|
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
|
|
ExitMessage.add "\nType 'aliyun --help' to get started.\n"
|
|
end
|
|
end
|