mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
33 lines
913 B
Ruby
33 lines
913 B
Ruby
require 'package'
|
|
require 'misc_functions'
|
|
|
|
class Ollama < Package
|
|
description 'Get up and running with large language models.'
|
|
homepage 'https://ollama.com/'
|
|
version '0.13.5'
|
|
license 'MIT'
|
|
compatibility 'x86_64'
|
|
source_url "https://github.com/ollama/ollama/releases/download/v#{version}/ollama-linux-amd64.tgz"
|
|
source_sha256 '41fb93ff8be35e4d2d22bafd1c42b487efb15b766076d976766bd1ee4db3f8e2'
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
# no_strip # ./usr/local/bin/ollama: 1: ./usr/local/bin/ollama: Syntax error: redirection unexpected (expecting ")")
|
|
|
|
def self.preflight
|
|
MiscFunctions.check_free_disk_space(3435973837)
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.install 'bin/ollama', "#{CREW_DEST_PREFIX}/bin/ollama", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'ollama' to get started.\n"
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/.ollama")
|
|
end
|
|
end
|