Github messages for voidlinux
 help / color / mirror / Atom feed
From: iFoundSilentHouse <iFoundSilentHouse@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ollama-0.1.32
Date: Tue, 30 Apr 2024 22:07:12 +0200	[thread overview]
Message-ID: <20240430200712.4532C2466B@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50133@inbox.vuxu.org>

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

There is an updated 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: 2082 bytes --]

From ef03c533334a4500e76daf0d8a7fc4df789a05d0 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         | 37 +++++++++++++++++++++++++++++++++
 2 files changed, 41 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..12a03a00d7fe46
--- /dev/null
+++ b/srcpkgs/ollama/template
@@ -0,0 +1,37 @@
+# Template file for 'ollama'
+pkgname=ollama
+version=0.1.32
+revision=1
+_llama_cpp_hash=7593639ce335e8d7f89aa9a54d616951f273af60
+archs="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/"
+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"
+
+system_accounts=_ollama
+
+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
+}

  parent reply	other threads:[~2024-04-30 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-30 19:47 [PR PATCH] " iFoundSilentHouse
2024-04-30 19:59 ` [PR PATCH] [Updated] " iFoundSilentHouse
2024-04-30 20:07 ` iFoundSilentHouse [this message]
2024-05-12 13:05 ` ayoubelmhamdi
2024-05-12 13:17 ` ayoubelmhamdi
2024-05-12 13:19 ` ayoubelmhamdi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240430200712.4532C2466B@inbox.vuxu.org \
    --to=ifoundsilenthouse@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).