blob: ef2290b5d79bb8a0265f5a2322c3616d49f2760a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Daniel Chesters <archlinux@coin-coin.xyz>
pkgname=python-ollama
pkgver=0.4.5
pkgrel=1
pkgdesc="Ollama Python library"
arch=('any')
url="https://github.com/ollama/ollama-python"
license=('MIT')
depends=(
'ollama'
'python'
'python-httpx'
'python-typing_extensions'
)
makedepends=('python-poetry')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ollama/ollama-python/archive/refs/tags/v$pkgver.tar.gz")
build() {
cd "ollama-python-$pkgver" || exit
poetry build -f wheel
}
package() {
cd "ollama-python-$pkgver" || exit
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
b2sums=('48af2cf1faf98235dee402b09501ed23162bfab651134b20e3543a2130b6e6604b5d2cf831fccb06d12d61bb502a0be4e3fbe6eb4971c65dfe6cc98dc04253b5')
|