From 4e0b42ef3ca467ae834975f68a16b979499d8c32 Mon Sep 17 00:00:00 2001 From: Ed Reel Date: Sat, 19 Apr 2025 18:57:39 -0500 Subject: [PATCH] Ollama 0.5.9 => 0.6.5 (#11770) --- packages/ollama.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/ollama.rb b/packages/ollama.rb index 4eb46908c..90d208507 100644 --- a/packages/ollama.rb +++ b/packages/ollama.rb @@ -1,19 +1,28 @@ require 'package' +require 'misc_functions' class Ollama < Package description 'Get up and running with large language models.' homepage 'https://ollama.com/' - version '0.5.9' + version '0.6.5' license 'MIT' compatibility 'x86_64' source_url "https://github.com/ollama/ollama/releases/download/v#{version}/ollama-linux-amd64.tgz" - source_sha256 '223c2dd297a6c070d147c0189d32f191279cd264f6b2da7a2663402de9db9900' + source_sha256 '1d1aea4dcae1d6b736141c2998416a742b89d7fda9321d60db7ea286db77268d' 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 end