mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
29 lines
900 B
Ruby
29 lines
900 B
Ruby
require 'package'
|
|
|
|
class Clickhouse < Package
|
|
description 'Real-time analytics DBMS'
|
|
homepage 'https://clickhouse.com/'
|
|
version '25.11.2.24'
|
|
license 'Apache-2.0'
|
|
compatibility 'x86_64'
|
|
source_url "https://github.com/ClickHouse/ClickHouse/releases/download/v#{version}-stable/clickhouse-common-static-#{version}-amd64.tgz"
|
|
source_sha256 '2f2f40828c5683a6b3e3624a4e382bda79651d93eb04ce627748b29080a8abbf'
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
print_source_bashrc
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d"
|
|
FileUtils.mv 'usr/bin/', CREW_DEST_PREFIX.to_s
|
|
FileUtils.mv 'usr/share/', CREW_DEST_PREFIX.to_s
|
|
File.write "#{CREW_DEST_PREFIX}/etc/env.d/10-clickhouse", <<~EOF
|
|
source #{CREW_PREFIX}/share/bash-completion/completions/clickhouse
|
|
EOF
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'clickhouse' to get started.\n"
|
|
end
|
|
end
|