Files
chromebrew/packages/platformsh.rb
Ed Reel 64552f6e19 Platformsh 1.7.2 => 1.9.0 (#15007)
* Plasma_wayland_protocols 1.18.0 => 1.20.0

* Platformsh 5.7.2 => 5.9.0
2026-03-14 22:04:22 +00:00

32 lines
1.1 KiB
Ruby

require 'package'
class Platformsh < Package
description 'The unified tool for managing your Platform.sh services from the command line.'
homepage 'https://docs.platform.sh/overview/cli.html'
version '5.9.0'
license 'MIT'
compatibility 'aarch64 armv7l x86_64'
source_url "https://github.com/platformsh/cli/releases/download/#{version}/platform_#{version}_linux_amd64.tar.gz"
source_sha256 'cdd18617096499efb8e420b0d0f02472e7dc4ef366d8830567ccc7b9c91cdb5b'
depends_on 'php84' unless File.exist? "#{CREW_PREFIX}/bin/php"
no_compile_needed
no_shrink
print_source_bashrc
def self.install
FileUtils.install 'platform', "#{CREW_DEST_PREFIX}/bin/platform", mode: 0o755
FileUtils.install 'completion/bash/platform.bash', "#{CREW_DEST_PREFIX}/etc/bash.d/platform.bash", mode: 0o644
FileUtils.install 'completion/bash/upsun.bash', "#{CREW_DEST_PREFIX}/etc/bash.d/upsun.bash", mode: 0o644
end
def self.postinstall
ExitMessage.add "\nType 'platform -h' to get started.\n"
end
def self.postremove
Package.agree_to_remove("#{HOME}/.platformsh")
end
end