mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add clickhouse package (#10273)
This commit is contained in:
27
packages/clickhouse.rb
Normal file
27
packages/clickhouse.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
require 'package'
|
||||
|
||||
class Clickhouse < Package
|
||||
description 'Real-time analytics DBMS'
|
||||
homepage 'https://clickhouse.com/'
|
||||
version '24.6.3.95'
|
||||
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 'cedb1af770dd6e298026904de3a39decdc8382b4783385d81316a3fdec906674'
|
||||
|
||||
no_compile_needed
|
||||
no_shrink
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user