Github messages for voidlinux
 help / color / mirror / Atom feed
From: ezag <ezag@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ollama-0.1.20
Date: Sat, 13 Jan 2024 14:10:21 +0100	[thread overview]
Message-ID: <20240113131021.Qk0HRYaF6rSJXjRYDkf8zvVEXIXUQJtzG7qa-X5IEv4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48199@inbox.vuxu.org>

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

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages ollama
https://github.com/void-linux/void-packages/pull/48199

New package: ollama-0.1.20
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- 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**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From 27cdb96d87b9d25b5d3f457668322118cc46aa2b Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Sat, 13 Jan 2024 14:07:57 +0200
Subject: [PATCH] New package: ollama-0.1.20

---
 srcpkgs/ollama/files/ollama/run |  3 +++
 srcpkgs/ollama/template         | 29 +++++++++++++++++++++++++++++
 2 files changed, 32 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 0000000000000..b66e8171bc626
--- /dev/null
+++ b/srcpkgs/ollama/files/ollama/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+HOME=/var/lib/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 0000000000000..63b5a5bf348a2
--- /dev/null
+++ b/srcpkgs/ollama/template
@@ -0,0 +1,29 @@
+# Template file for 'ollama'
+pkgname=ollama
+version=0.1.20
+revision=1
+archs="i686 x86_64"
+build_style=go
+go_import_path="github.com/jmorganca/${pkgname}"
+hostmakedepends="cmake git"
+short_desc="Get up and running with large language models, locally"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=MIT
+homepage="https://ollama.ai/"
+system_accounts=_ollama
+_ollama_homedir=/var/lib/ollama
+make_dirs="${_ollama_homedir} 0775 _ollama _ollama"
+
+do_fetch() {
+	git clone -b v${version} https://github.com/jmorganca/${pkgname}.git ${pkgname}-${version}
+}
+
+pre_build() {
+	go generate ./...
+}
+
+do_install() {
+	vlicense LICENSE
+	vbin _build-ollama-xbps/bin/ollama
+	vsv ollama
+}

  reply	other threads:[~2024-01-13 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-13 13:02 [PR PATCH] " ezag
2024-01-13 13:10 ` ezag [this message]
2024-02-13 15:44 ` melroy89
2024-04-28 21:26 ` [PR REVIEW] " Bnyro
2024-04-28 21:26 ` Bnyro
2024-04-28 21:27 ` Bnyro
2024-04-28 21:27 ` Bnyro

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=20240113131021.Qk0HRYaF6rSJXjRYDkf8zvVEXIXUQJtzG7qa-X5IEv4@z \
    --to=ezag@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).