Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: ollama-0.1.20
@ 2024-01-13 13:02 ezag
  2024-01-13 13:10 ` [PR PATCH] [Updated] " ezag
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ezag @ 2024-01-13 13:02 UTC (permalink / raw)
  To: ml

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

There is a new 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: 1599 bytes --]

From 48be5fa1e52bb1690e37afbba2e59f4442cd25bc 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         | 28 ++++++++++++++++++++++++++++
 2 files changed, 31 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..8bef1aaad844a
--- /dev/null
+++ b/srcpkgs/ollama/template
@@ -0,0 +1,28 @@
+# Template file for 'ollama'
+pkgname=ollama
+version=0.1.20
+revision=1
+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
+}

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

* Re: [PR PATCH] [Updated] New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
@ 2024-01-13 13:10 ` ezag
  2024-02-13 15:44 ` melroy89
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ezag @ 2024-01-13 13:10 UTC (permalink / raw)
  To: ml

[-- 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
+}

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

* Re: New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
  2024-01-13 13:10 ` [PR PATCH] [Updated] " ezag
@ 2024-02-13 15:44 ` melroy89
  2024-04-28 21:26 ` [PR REVIEW] " Bnyro
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: melroy89 @ 2024-02-13 15:44 UTC (permalink / raw)
  To: ml

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

New comment by melroy89 on void-packages repository

https://github.com/void-linux/void-packages/pull/48199#issuecomment-1941823879

Comment:
URL is changed to: https://github.com/ollama/ollama

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

* Re: [PR REVIEW] New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
  2024-01-13 13:10 ` [PR PATCH] [Updated] " ezag
  2024-02-13 15:44 ` melroy89
@ 2024-04-28 21:26 ` Bnyro
  2024-04-28 21:26 ` Bnyro
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Bnyro @ 2024-04-28 21:26 UTC (permalink / raw)
  To: ml

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

New review comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/48199#discussion_r1582397084

Comment:
```suggestion
distfiles="https://github.com/ollama/ollama/archive/refs/tags/v${version}.tar.gz"
```

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

* Re: [PR REVIEW] New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: Bnyro @ 2024-04-28 21:26 UTC (permalink / raw)
  To: ml

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

New review comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/48199#discussion_r1582397084

Comment:
```suggestion
distfiles="https://github.com/ollama/ollama/archive/refs/tags/v${version}.tar.gz"
```

instead of overriding do_fetch

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

* Re: [PR REVIEW] New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
                   ` (3 preceding siblings ...)
  2024-04-28 21:26 ` Bnyro
@ 2024-04-28 21:27 ` Bnyro
  2024-04-28 21:27 ` Bnyro
  5 siblings, 0 replies; 7+ messages in thread
From: Bnyro @ 2024-04-28 21:27 UTC (permalink / raw)
  To: ml

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

New review comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/48199#discussion_r1582397135

Comment:
```suggestion
post_install() {
```

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

* Re: [PR REVIEW] New package: ollama-0.1.20
  2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
                   ` (4 preceding siblings ...)
  2024-04-28 21:27 ` Bnyro
@ 2024-04-28 21:27 ` Bnyro
  5 siblings, 0 replies; 7+ messages in thread
From: Bnyro @ 2024-04-28 21:27 UTC (permalink / raw)
  To: ml

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

New review comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/48199#discussion_r1582397205

Comment:
```suggestion
```

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

end of thread, other threads:[~2024-04-28 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-13 13:02 [PR PATCH] New package: ollama-0.1.20 ezag
2024-01-13 13:10 ` [PR PATCH] [Updated] " ezag
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

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).