Files
chromebrew/packages/crystal.rb
2025-11-04 09:22:41 +00:00

21 lines
743 B
Ruby

require 'package'
class Crystal < Package
description 'A language for humans and computers'
homepage 'https://crystal-lang.org/'
version '1.18.2'
license 'Apache-2.0'
compatibility 'x86_64'
source_url "https://github.com/crystal-lang/crystal/releases/download/#{version}/crystal-#{version}-1-linux-x86_64-bundled.tar.gz"
source_sha256 '179c48162365e1f84426a3d352fe7a97e7fc798fd73b4232d1f491b11a0ef2dc'
no_compile_needed
print_source_bashrc
def self.install
FileUtils.mkdir_p %W[#{CREW_DEST_PREFIX} #{CREW_DEST_PREFIX}/etc/bash.d]
FileUtils.mv %w[bin lib share], CREW_DEST_PREFIX
FileUtils.ln_s "#{CREW_PREFIX}/share/bash-completion/completions/crystal", "#{CREW_DEST_PREFIX}/etc/bash.d/10-crystal"
end
end