Alexander Rødseth pushed to branch main at Arch Linux / Packaging / Packages /
ollama
Commits:
f44c6b19 by Alexander F. Rødseth at 2023-12-18T00:54:32+01:00
upgpkg: 0.1.16-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = ollama
pkgdesc = Create, run and share large language models (LLMs)
- pkgver = 0.1.13
+ pkgver = 0.1.16
pkgrel = 1
url = https://github.com/jmorganca/ollama
arch = x86_64
@@ -9,9 +9,9 @@ pkgbase = ollama
makedepends = git
makedepends = go
makedepends = setconf
- source =
git+https://github.com/jmorganca/ollama#commit=cedae0d17a38a23269191bf69f2b2248aa830303
+ source =
git+https://github.com/jmorganca/ollama#commit=6ee8c80199866f1d1826ca8f8239e7e70c96fab7
source =
ggml::git+https://github.com/ggerganov/llama.cpp#commit=9e232f0234073358e7031c1b8d7aa45020469a3b
- source =
gguf::git+https://github.com/ggerganov/llama.cpp#commit=9656026b53236ed7328458269c4c798dd50ac8d1
+ source =
gguf::git+https://github.com/ggerganov/llama.cpp#commit=948ff137ec37f1ec74c02905917fa0afc9b97514
source = sysusers.conf
source = tmpfiles.d
source = ollama.service
=====================================
PKGBUILD
=====================================
@@ -3,17 +3,17 @@
pkgname=ollama
pkgdesc='Create, run and share large language models (LLMs)'
-pkgver=0.1.13
+pkgver=0.1.16
pkgrel=1
arch=(x86_64)
url='https://github.com/jmorganca/ollama'
license=(MIT)
makedepends=(cmake git go setconf)
-_ollamacommit=cedae0d17a38a23269191bf69f2b2248aa830303 # tag: v0.1.13
+_ollamacommit=6ee8c80199866f1d1826ca8f8239e7e70c96fab7 # tag: v0.1.16
# The git submodule commit hashes are here:
-# https://github.com/jmorganca/ollama/tree/v0.1.13/llm/llama.cpp
+# https://github.com/jmorganca/ollama/tree/v0.1.16/llm/llama.cpp
_ggmlcommit=9e232f0234073358e7031c1b8d7aa45020469a3b
-_ggufcommit=9656026b53236ed7328458269c4c798dd50ac8d1
+_ggufcommit=948ff137ec37f1ec74c02905917fa0afc9b97514
source=(git+$url#commit=$_ollamacommit
ggml::git+https://github.com/ggerganov/llama.cpp#commit=$_ggmlcommit
gguf::git+https://github.com/ggerganov/llama.cpp#commit=$_ggufcommit
@@ -39,6 +39,8 @@ prepare() {
# Do not git clone when "go generate" is being run.
sed -i 's,git submodule,true,g' llm/llama.cpp/generate_linux.go
+ sed -i 's,LLAMA_CUBLAS=on,LLAMA_LTO=on,g' llm/llama.cpp/generate_linux.go
+
# Set the version number
setconf version/version.go 'var Version string' "\"$pkgver\""
}
@@ -51,13 +53,6 @@ build() {
go build -buildmode=pie -trimpath -mod=readonly -modcacherw
-ldflags=-linkmode=external -ldflags=-buildid=''
}
-# "go test" is disabled temporarily because it stopped working,
-# see also:
https://github.com/jmorganca/ollama/pull/709#issuecomment-1845583194
-#check() {
-# cd $pkgname
-# go test ./...
-#}
-
package() {
install -Dm755 $pkgname/$pkgname "$pkgdir/usr/bin/$pkgname"
install -dm700 "$pkgdir/var/lib/ollama"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ollama/-/commit/f44c6b19198383719c27a4e6dfdbe9df18f3d700
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ollama/-/commit/f44c6b19198383719c27a4e6dfdbe9df18f3d700
You're receiving this email because of your account on gitlab.archlinux.org.