summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e6559206cf6fd3b840ce06062ca3d9dd97ccc2d (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
53
54
55
56
57
58
# Maintainer: Kai <kaimingzhang1234@gmail.com>
pkgname=cheetahclaws-git
pkgver=r439.2998f79
pkgrel=1
pkgdesc="An extensible, Python-native agent system for autonomous multi-model workflows (Claude, GPT, Ollama, etc.)"
arch=('any')
url="https://github.com/SafeRL-Lab/cheetahclaws"
license=('MIT')
keywords=('ai' 'agent' 'llm' 'cli' 'claude' 'openai' 'ollama' 'python')
depends=(
  'python'
  'python-anthropic'
  'python-openai'
  'python-httpx'
  'python-rich'
  'python-pyte'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
optdepends=(
  'python-sounddevice: voice input'
  'python-pillow: vision / OCR support'
  'python-prompt_toolkit: autosuggestions in the REPL'
  'python-playwright: browser automation tools'
  'python-pymupdf: PDF file support'
  'python-openpyxl: Excel file support'
  'python-pytesseract: OCR support'
  'python-yfinance: trading module'
  'python-sqlalchemy: web server backend'
  'python-passlib: web server auth'
  'python-pyjwt: web server JWT auth'
  'ollama: local model support'
)
provides=('cheetahclaws')
conflicts=('cheetahclaws')
source=("${pkgname}::git+https://github.com/SafeRL-Lab/cheetahclaws.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$pkgname"
  python -m build --wheel --no-isolation
}

package() {
  cd "$pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}