mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Acquia_cli 2.41.0 => 2.41.1 Act 0.2.76 => 0.2.77 Appflowy 0.8.9 => 0.9.1 Btop 1.4.0 => 1.4.3 Bun 1.2.10 => 1.2.13 Cpu_x 5.2.0 => 5.3.0 Crystal 1.16.1 => 1.16.2 Dbeaver 25.0.2 => 25.0.4 Frp 0.62.0 => 0.62.1 Fzf 0.61.1 => 0.61.2 Github_cli 2.70.0 => 2.72.0 Glab 1.55.0 => 1.57.0 Go 1.24.2 => 1.24.3 Gradle 8.13 => 8.14.0 Joplin 3.3.5 => 3.3.12 Nocodb 0.260.5 => 0.263.1 Nushell 0.103.0 => 0.104.0 Nvm 0.40.2 => 0.40.3 Ollama 0.6.5 => 0.6.8 Openjdk17 17.0.14 => 17.0.15 Rclone 1.69.1 => 1.69.2 Rustdesk 1.3.9 => 1.4.0 Shrinkpdf 1.1 => 1.2 Starship 1.22.1 => 1.23.0 Terminus 3.6.2 => 4.0.0 Vscodium 1.99.32562 => 1.100.03093 Zed 0.182.11 => 0.185.15
36 lines
1.4 KiB
Ruby
36 lines
1.4 KiB
Ruby
require 'package'
|
|
|
|
class Starship < Package
|
|
description 'Cross-shell prompt for astronauts'
|
|
homepage 'https://starship.rs'
|
|
version '1.23.0'
|
|
license 'ISC'
|
|
compatibility 'all'
|
|
|
|
source_url({
|
|
aarch64: "https://github.com/starship/starship/releases/download/v#{version}/starship-arm-unknown-linux-musleabihf.tar.gz",
|
|
armv7l: "https://github.com/starship/starship/releases/download/v#{version}/starship-arm-unknown-linux-musleabihf.tar.gz",
|
|
i686: "https://github.com/starship/starship/releases/download/v#{version}/starship-i686-unknown-linux-musl.tar.gz",
|
|
x86_64: "https://github.com/starship/starship/releases/download/v#{version}/starship-x86_64-unknown-linux-musl.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: 'ec58cb85fbb85f3f80c1476fcea49c7c2d882d1c6961f3fd88e2b1b9d00951f0',
|
|
armv7l: 'ec58cb85fbb85f3f80c1476fcea49c7c2d882d1c6961f3fd88e2b1b9d00951f0',
|
|
i686: 'bcbf86c7057809a759a51ff45b711a94a9175a6eb289f6b9b062221491e2d136',
|
|
x86_64: '8d06d2cc67aedd6316ff58ab679fb80cded0d85de1dcd5727df0633d35356d57'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
print_source_bashrc
|
|
|
|
def self.install
|
|
FileUtils.install 'starship', "#{CREW_DEST_PREFIX}/bin/starship", mode: 0o755
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d"
|
|
File.write "#{CREW_DEST_PREFIX}/etc/env.d/10-starship", <<~EOF
|
|
eval "$(starship init bash)"
|
|
eval "$(starship completions bash)"
|
|
EOF
|
|
end
|
|
end
|