Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: ollama-0.1.32
@ 2024-04-30 19:47 iFoundSilentHouse
  2024-04-30 19:59 ` [PR PATCH] [Updated] " iFoundSilentHouse
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: iFoundSilentHouse @ 2024-04-30 19:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

There is a new pull request by iFoundSilentHouse against master on the void-packages repository

https://github.com/iFoundSilentHouse/void-packages ollama
https://github.com/void-linux/void-packages/pull/50133

New package: ollama-0.1.32
I wanted to test ollama myself so reworked @ezag PR: https://github.com/void-linux/void-packages/pull/48199
Now it's fetching files the right way and updated to 0.1.32. I'm fine with @ezag maintaining it. Just wanted to share my progress

- I tested the changes in this PR: yes
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

- I built this PR locally for my native architecture, (x86-64-glibc)
- I built this PR locally for these architectures:
  - aarch64-musl

About archs: The only archs supported by upstream are x86 and arm64 so others were disabled
About `git init` line: `go generate` script has `git submodule` command so build doesn't work without `.git` folder.

Closes https://github.com/void-linux/void-packages/issues/50094
@ezag , thnx. @Bnyro , I used your review messages. Thnx

A patch file from https://github.com/void-linux/void-packages/pull/50133.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ollama-50133.patch --]
[-- Type: text/x-diff, Size: 2085 bytes --]

From 51133987046ed4151e339872713405647cb8e838 Mon Sep 17 00:00:00 2001
From: IFoundSilentHouse <adeptslab@gmail.com>
Date: Wed, 1 May 2024 01:35:33 +0600
Subject: [PATCH] New package: ollama

reworked @ezag PR: https://github.com/void-linux/void-packages/pull/48199
---
 srcpkgs/ollama/files/ollama/run |  4 ++++
 srcpkgs/ollama/template         | 36 +++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/ollama/files/ollama/run
 create mode 100644 srcpkgs/ollama/template

diff --git a/srcpkgs/ollama/files/ollama/run b/srcpkgs/ollama/files/ollama/run
new file mode 100644
index 00000000000000..d74b1845a35fee
--- /dev/null
+++ b/srcpkgs/ollama/files/ollama/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+export USER=ollama
+exec chpst -u ollama:ollama ollama serve 2>&1
diff --git a/srcpkgs/ollama/template b/srcpkgs/ollama/template
new file mode 100644
index 00000000000000..b63c74e2c8ca0b
--- /dev/null
+++ b/srcpkgs/ollama/template
@@ -0,0 +1,36 @@
+# Template file for 'ollama'
+pkgname=ollama
+version=0.1.32
+_llama_cpp_hash=7593639ce335e8d7f89aa9a54d616951f273af60
+revision=1
+archs="i686 x86_64* aarch64*"
+build_style=go
+go_import_path="github.com/ollama/ollama"
+hostmakedepends="cmake git"
+short_desc="Get up and running with large language models, locally"
+maintainer="IFoundSilentHouse <adeptslab@gmail.com>"
+license="MIT"
+homepage="https://ollama.com/"
+system_accounts=ollama
+distfiles="https://github.com/ollama/ollama/archive/refs/tags/v${version}.tar.gz
+  https://github.com/ggerganov/llama.cpp/archive/${_llama_cpp_hash}.tar.gz>llama.cpp-${_llama_cpp_hash}.tgz"
+checksum="b8f43a9ce7731c8e19d801e6c08145e779ee607bf22864e495041e4440c5c283
+ 3183900a2825281df1bd6825b183f8df7febe9dfa666d3197ad6df44007678e1"
+
+skip_extraction=llama.cpp-${_llama_cpp_hash}.tgz
+
+post_extract() {
+	vsrcextract -C llm/llama.cpp llama.cpp-${_llama_cpp_hash}.tgz
+}
+
+pre_build() {
+	# "go generate" script uses "git submodule" command
+	git init
+	git add .
+	go generate ./...
+}
+
+post_install() {
+	vlicense LICENSE
+	vsv ollama
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-12 13:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-30 19:47 [PR PATCH] New package: ollama-0.1.32 iFoundSilentHouse
2024-04-30 19:59 ` [PR PATCH] [Updated] " iFoundSilentHouse
2024-04-30 20:07 ` iFoundSilentHouse
2024-05-12 13:05 ` ayoubelmhamdi
2024-05-12 13:17 ` ayoubelmhamdi
2024-05-12 13:19 ` ayoubelmhamdi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).