blob: c2197d612a06966e8b5a559f6522f0f163fd0293 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Daniel Chesters <archlinux@coin-coin.xyz>
pkgname=oterm-git
pkgver=0.7.0.r1.g7d14e9d
pkgrel=1
pkgdesc="A text-based terminal client for Ollama"
arch=('any')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
url="https://github.com/ggozad/oterm"
license=('MIT')
depends=(
'python'
'python-ollama'
'python-rich'
'python-typer'
'python-textual'
'python-pyperclip'
'python-aiosqlite'
'python-aiosql'
'python-packaging'
'python-dotenv'
'python-linkify-it-py'
'python-rich-pixels'
'python-pillow'
'python-textualeffects'
'python-pydantic'
)
makedepends=(
'python-installer'
'git'
'uv'
)
b2sums=('SKIP')
source=("$pkgname::git+https://github.com/ggozad/oterm.git")
pkgver() {
cd "$pkgname" || exit
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname" || exit
uvx --from build pyproject-build --installer uv
}
package() {
cd "$pkgname" || exit
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|