Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions srcpkgs/ollama/files/ollama/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
export HOME=/var/lib/ollama
export OLLAMA_MODELS=/var/lib/ollama
exec chpst -u _ollama:_ollama ollama serve
22 changes: 22 additions & 0 deletions srcpkgs/ollama/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Template file for 'ollama'
pkgname=ollama
version=0.33.3
revision=1
archs="x86_64 x86_64-musl aarch64 aarch64-musl"
build_style=go
configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr"
go_import_path="github.com/ollama/ollama"
short_desc="Local LLM system"
maintainer="Jason Elswick <jason@jasondavid.us>"
license="MIT"
homepage="https://github.com/ollama/ollama"
distfiles="https://github.com/ollama/ollama/archive/refs/tags/v${version}.tar.gz"
checksum=eaf9e0e7f78f1cac54dea518cbab6346890516e28c49575ee754bd778094d6d6
system_accounts="_ollama"
transmission_homedir="/var/lib/ollama"
make_dirs="/var/lib/ollama 0755 _ollama _ollama"

post_install() {
vlicense LICENSE
vsv ollama
}